-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: add CI for template instantiation (#24)
- Loading branch information
1 parent
8dfa20b
commit 42a0b88
Showing
1 changed file
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 . |