From 426dfd55b985935d029c4b98f58809d3cce20ea8 Mon Sep 17 00:00:00 2001 From: Sviatoslav Sydorenko Date: Wed, 3 Nov 2021 12:59:40 +0100 Subject: [PATCH] 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. --- .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 f35d2101..1d97322d 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