Skip to content

Commit 14893ce

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.
1 parent aa1a957 commit 14893ce

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)