From f389cadf56b941353e6a2d6a670d6bff5ff1019d Mon Sep 17 00:00:00 2001 From: Sviatoslav Sydorenko Date: Tue, 2 Nov 2021 23:15:08 +0100 Subject: [PATCH] Add a no-op check job to GHA for branch protection 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. --- .github/workflows/test-library.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/test-library.yml b/.github/workflows/test-library.yml index f35d21019c..1d97322d56 100644 --- a/.github/workflows/test-library.yml +++ b/.github/workflows/test-library.yml @@ -116,3 +116,16 @@ jobs: --parallel auto --parallel-live --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