Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: add CI for template instantiation #24

Merged
merged 1 commit into from
Feb 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Test Template Instance

on:
pull_request:
branches:
- main


jobs:
Creation:
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: "3.9"
- name: Install Dependencies
run: |
pip install copier pre-commit
- name: Create copy
run: |
copier copy \
-d project_name=test \
-d org=gh_actions \
-d full_name=gh_actions \
-d [email protected] \
-d license=BSD \
-d backend=setuptools \
-d typing=strict \
-d coc=our_coc \
project_template instance
- name: linting
run: |
cd instance
pre-commit run --all
- name: project-install
run: pip install .