Skip to content

Commit f978375

Browse files
committed
Add fan-in summary job for single required check
1 parent 0d85089 commit f978375

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

.github/workflows/tox.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,3 +259,24 @@ jobs:
259259
run: |
260260
$wheel = Get-ChildItem dist\*.whl | Select-Object -ExpandProperty FullName -First 1
261261
tox --installpkg $wheel -e windows --sitepackages
262+
263+
# Single stable check for branch protection. Skipped matrix jobs don't
264+
# produce per-version check runs, so matrix-suffixed required checks hang
265+
# as "Expected" on PRs that skip the tests; require this job instead.
266+
required_checks:
267+
name: Python tests
268+
needs:
269+
- pre_job
270+
- build
271+
- unit_test
272+
- unit_test_eol_python
273+
- cryptography
274+
- cryptography_eol_python
275+
- postgres
276+
- windows
277+
if: always()
278+
runs-on: ubuntu-latest
279+
steps:
280+
- name: Fail if any needed job failed or was cancelled
281+
if: contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled')
282+
run: exit 1

0 commit comments

Comments
 (0)