Add a no-op check job to GHA for branch protection (#652)

This patch adds an "empty" job that depends on all the important ones
making it possible to use just this `check` job in the branch
protection settings. This reduces the maintenance burden by preventing
the need to update these settings on any changes to the job
declarations.
This commit is contained in:
Sviatoslav Sydorenko 2021-11-03 12:59:40 +01:00 committed by GitHub
parent fae694fe86
commit 426dfd55b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 13 additions and 0 deletions

View File

@ -116,3 +116,16 @@ jobs:
--parallel auto --parallel auto
--parallel-live --parallel-live
--skip-missing-interpreters false --skip-missing-interpreters false
check: # This job does nothing and is only used for the branch protection
needs:
- build
- tox
runs-on: ubuntu-latest
steps:
- name: Report success of the test matrix
run: >-
print("All's good")
shell: python