From 18c30068903f57075cbd9f2f626dd0099073e481 Mon Sep 17 00:00:00 2001 From: Chris Sewell Date: Fri, 3 Nov 2023 09:35:05 +0100 Subject: [PATCH] Add `check` CI job This job simply passes if all other jobs pass. This means that it can be used as a singlular "required" for branch protection rules, rather than having to change every time the test matrix changes --- .github/workflows/ci.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index c9c2ad9a5..2db32db77 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -62,3 +62,17 @@ jobs: with: python-version: '3.8' - uses: pre-commit/action@v3.0.0 + + check: + # This job does nothing and is only used for the branch protection + # see https://github.com/marketplace/actions/alls-green#why + if: always() + needs: + - lint + - tests + runs-on: ubuntu-latest + steps: + - name: Decide whether the needed jobs succeeded or failed + uses: re-actors/alls-green@release/v1 + with: + jobs: ${{ toJSON(needs) }}