Skip to content

Commit 8b0ef2d

Browse files
committed
Add a summary job that checks whether all tests passed
We can use this to add a status check to ensure that only PRs passing all tests can be merged. The commit ID I used for the alls-green action is taken from the current tip of the release/v1 branch. (It's not clear whether the action is maintained, but using a commit hash means we don't have to care about any future changes unless we actively decide to.)
1 parent aa1a957 commit 8b0ef2d

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/tests.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,3 +59,13 @@ jobs:
5959
pip install tox
6060
- name: Test with tox
6161
run: tox -vv -e py${{ matrix.extra }} ${{ matrix.force-min-deps && matrix.versions.min-deps || '' }}
62+
63+
summary:
64+
runs-on: ubuntu-latest
65+
needs:
66+
- build
67+
steps:
68+
- name: Summarize job statuses
69+
uses: re-actors/alls-green@05ac9388f0aebcb5727afa17fcccfecd6f8ec5fe
70+
with:
71+
jobs: ${{ toJSON(needs) }}

0 commit comments

Comments
 (0)