Skip to content

Commit

Permalink
workflows: add a wrapper job to report test results
Browse files Browse the repository at this point in the history
This wrapper job will have a stable name, so it's easy to configure a
required check on it.
  • Loading branch information
rafiss committed Oct 3, 2023
1 parent 1478f26 commit 029d0f5
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,22 @@ concurrency:
cancel-in-progress: true

jobs:
python38:
# Since the name of the matrix job depends on the version, we define another job with a more stable name.
test_results:
if: ${{ always() }}
runs-on: ubuntu-22.04
name: Test Results
needs: [test]
steps:
- run: |
result="${{ needs.test.result }}"
if [[ $result == "success" || $result == "skipped" ]]; then
exit 0
else
exit 1
fi
test:
runs-on: ubuntu-22.04
strategy:
fail-fast: false
Expand Down

0 comments on commit 029d0f5

Please sign in to comment.