File tree Expand file tree Collapse file tree 3 files changed +2
-48
lines changed
template/{% if git_platform=="github.com" %}.github{% endif %}/workflows Expand file tree Collapse file tree 3 files changed +2
-48
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -2,22 +2,17 @@ name: CI
22
33on :
44 push :
5+ branches :
6+ - main
57 pull_request :
68
79jobs :
8- check :
9- uses : ./.github/workflows/_check.yml
10-
1110 lint :
12- needs : check
13- if : needs.check.outputs.branch-pr == ''
1411 uses : ./.github/workflows/_tox.yml
1512 with :
1613 tox : pre-commit
1714
1815 test :
19- needs : check
20- if : needs.check.outputs.branch-pr == ''
2116 uses : ./.github/workflows/_test.yml
2217 with :
2318 python-version : dev
2621 CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
2722
2823 docs :
29- needs : check
30- if : needs.check.outputs.branch-pr == ''
3124 uses : ./.github/workflows/_docs.yml
3225 permissions :
3326 contents : write
Original file line number Diff line number Diff line change 55 pull_request:
66
77jobs:
8- check:
9- uses: ./.github/workflows/_check.yml
108
119 lint:
12- needs: check
13- if: needs.check.outputs.branch-pr == ''
1410 uses: ./.github/workflows/_tox.yml
1511 with:
1612 tox: pre-commit,type-checking
1713{% raw %}
1814 test:
19- needs: check
20- if: needs.check.outputs.branch-pr == ''
2115 strategy:
2216 matrix:
2317 runs-on: ["ubuntu-latest"] # can add windows-latest, macos-latest
@@ -35,21 +29,15 @@ jobs:
3529 CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
3630{% endraw %}{% if docker %}
3731 container:
38- needs: check
39- if: needs.check.outputs.branch-pr == ''
4032 uses: ./.github/workflows/_container.yml
4133 permissions:
4234 contents: read
4335 packages: write
4436{% endif %}{% if sphinx %}
4537 docs:
46- needs: check
47- if: needs.check.outputs.branch-pr == ''
4838 uses: ./.github/workflows/_docs.yml
4939{% endif %}
5040 dist:
51- needs: check
52- if: needs.check.outputs.branch-pr == ''
5341 uses: ./.github/workflows/_dist.yml
5442 {% if pypi %}
5543 pypi:
You can’t perform that action at this time.
0 commit comments