Skip to content

Commit

Permalink
Add All tests job for PR status checks.
Browse files Browse the repository at this point in the history
  • Loading branch information
joaander committed May 28, 2024
1 parent 0384fc0 commit d8e084a
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/run_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ defaults:

jobs:
run_tests:
name: Run tests on ${{ matrix.os }} with Python ${{ matrix.python }}
name: Unit test [py${{ matrix.python }} ${{ matrix.os }}]
runs-on: ${{ matrix.os }}
strategy:
matrix:
Expand Down Expand Up @@ -60,3 +60,14 @@ jobs:
- name: Run Tests
run: |
pytest tests/ -v
tests_complete:
name: All tests
if: always()
needs: [run_tests]
runs-on: ubuntu-latest

steps:
- run: jq --exit-status 'all(.result == "success")' <<< '${{ toJson(needs) }}'
- name: Done
run: exit 0

0 comments on commit d8e084a

Please sign in to comment.