File tree Expand file tree Collapse file tree 4 files changed +30
-10
lines changed
Expand file tree Collapse file tree 4 files changed +30
-10
lines changed Original file line number Diff line number Diff line change 22omit =
33 # leading `*/` for pytest-dev/pytest-cov#456
44 */.tox/*
5+ */pep517-build-env-*
56 tests/*
67 prepare/*
78 */_itertools.py
Original file line number Diff line number Diff line change @@ -14,3 +14,6 @@ max_line_length = 88
1414[* .{yml,yaml} ]
1515indent_style = space
1616indent_size = 2
17+
18+ [* .rst ]
19+ indent_style = space
Original file line number Diff line number Diff line change 77 strategy :
88 matrix :
99 python :
10- - 3.7
11- - 3.9
12- - " 3.10"
10+ # Build on pre-releases until stable, then stable releases.
11+ # actions/setup-python#213
12+ - ~3.7.0-0
13+ - ~3.10.0-0
14+ - ~3.11.0-0
1315 platform :
1416 - ubuntu-latest
1517 - macos-latest
1618 - windows-latest
1719 runs-on : ${{ matrix.platform }}
1820 steps :
19- - uses : actions/checkout@v2
21+ - uses : actions/checkout@v3
2022 with :
2123 # fetch all branches and tags (to get tags for versioning)
2224 # ref actions/checkout#448
2325 fetch-depth : 0
24-
2526 - name : Setup Python
26- uses : actions/setup-python@v2
27+ uses : actions/setup-python@v3
2728 with :
2829 python-version : ${{ matrix.python }}
2930 - name : Install tox
3233 - name : Run tests
3334 run : tox
3435
36+ check : # This job does nothing and is only used for the branch protection
37+ if : always()
38+
39+ needs :
40+ - test
41+
42+ runs-on : ubuntu-latest
43+
44+ steps :
45+ - name : Decide whether the needed jobs succeeded or failed
46+ uses : re-actors/alls-green@release/v1
47+ with :
48+ jobs : ${{ toJSON(needs) }}
49+
3550 diffcov :
3651 runs-on : ubuntu-latest
3752 steps :
@@ -51,14 +66,15 @@ jobs:
5166 TOXENV : diffcov
5267
5368 release :
54- needs : test
69+ needs :
70+ - check
5571 if : github.event_name == 'push' && contains(github.ref, 'refs/tags/')
5672 runs-on : ubuntu-latest
5773
5874 steps :
59- - uses : actions/checkout@v2
75+ - uses : actions/checkout@v3
6076 - name : Setup Python
61- uses : actions/setup-python@v2
77+ uses : actions/setup-python@v3
6278 with :
6379 python-version : " 3.10"
6480 - name : Install tox
Original file line number Diff line number Diff line change 1818 ),
1919 dict (
2020 pattern = r'PEP[- ](?P<pep_number>\d+)' ,
21- url = 'https://www .python.org/dev/peps /pep-{pep_number:0>4}/' ,
21+ url = 'https://peps .python.org/pep-{pep_number:0>4}/' ,
2222 ),
2323 ],
2424 )
You can’t perform that action at this time.
0 commit comments