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 4, 2023
1 parent 1478f26 commit 8465361
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:
# This job aggregates all matrix results and is used for a GitHub required status check.
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 8465361

Please sign in to comment.