From e444fbc3791bce94d2219a498538dfd5f6dbdcbb Mon Sep 17 00:00:00 2001 From: Steven Silvester Date: Tue, 26 Apr 2022 16:32:48 -0500 Subject: [PATCH] Backport PR #797: Add helper jobs for branch protection --- .github/workflows/integration-tests.yml | 11 +++++++++++ .github/workflows/python-tests.yml | 15 +++++++++++++++ 2 files changed, 26 insertions(+) diff --git a/.github/workflows/integration-tests.yml b/.github/workflows/integration-tests.yml index fb57a22ebe..ace4a2d40e 100644 --- a/.github/workflows/integration-tests.yml +++ b/.github/workflows/integration-tests.yml @@ -28,3 +28,14 @@ jobs: - name: Run the tests run: | pytest -vv --integration_tests=true tests + + integration_check: # This job does nothing and is only used for the branch protection + if: always() + needs: + - build + 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) }} diff --git a/.github/workflows/python-tests.yml b/.github/workflows/python-tests.yml index 40f2670105..7b8775dd99 100644 --- a/.github/workflows/python-tests.yml +++ b/.github/workflows/python-tests.yml @@ -137,3 +137,18 @@ jobs: steps: - uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1 - uses: jupyterlab/maintainer-tools/.github/actions/test-sdist@v1 + + python_tests_check: # This job does nothing and is only used for the branch protection + if: always() + needs: + - build + - pre-commit + - test_prereleases + - make_sdist + - test_sdist + 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) }}