diff options
author | Sviatoslav Sydorenko <wk@sydorenko.org.ua> | 2022-10-04 17:22:56 +0200 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2022-10-04 20:26:22 -0400 |
commit | fdc40d016acb719be6b96e5cd1ab4a7dd0687548 (patch) | |
tree | dceba811dfb1e8cd673df66c5b9acf8d0531d6a5 /.github/workflows/testsuite.yml | |
parent | d9e2e3c7eb62f59109101370fee4e157c8af3052 (diff) | |
download | python-coveragepy-git-fdc40d016acb719be6b96e5cd1ab4a7dd0687548.tar.gz |
build: fix the branch protection gate check @ GHA
This adds a GHA job that reliably determines if all the required
dependencies have succeeded or not.
It is now in use in aiohttp (and other aio-libs projects), CherryPy,
some of the Ansible repositories, all of the jaraco's projects (like
`setuptools`, `importlib_metadata`), some of hynek's projects, some
PyCQA, PyCA, PyPA and pytest projects, a few AWS Labs projects (to my
surprise).
The story behind this is explained in more detail at
https://github.com/marketplace/actions/alls-green#why.
Diffstat (limited to '.github/workflows/testsuite.yml')
-rw-r--r-- | .github/workflows/testsuite.yml | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/.github/workflows/testsuite.yml b/.github/workflows/testsuite.yml index 81b9e1bb..feb6676d 100644 --- a/.github/workflows/testsuite.yml +++ b/.github/workflows/testsuite.yml @@ -91,13 +91,18 @@ jobs: exit 1 fi - # A final step to give a simple name for required status checks. + # This job aggregates test results. It's the required check for branch protection. + # https://github.com/marketplace/actions/alls-green#why # https://github.com/orgs/community/discussions/33579 success: - needs: tests - runs-on: ubuntu-latest name: Tests successful + if: always() + needs: + - tests + runs-on: ubuntu-latest steps: - - name: "Success" - run: | - echo Tests successful + - name: Decide whether the needed jobs succeeded or failed + # uses: re-actors/alls-green@v1.2.1 + uses: re-actors/alls-green@13b4244b312e8a314951e03958a2f91519a6a3c9 + with: + jobs: ${{ toJSON(needs) }} |