Skip to content

Commit 8465361

Browse files
committed
workflows: add a wrapper job to report test results
This wrapper job will have a stable name, so it's easy to configure a required check on it.
1 parent 1478f26 commit 8465361

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

.github/workflows/tests.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,22 @@ concurrency:
88
cancel-in-progress: true
99

1010
jobs:
11-
python38:
11+
# This job aggregates all matrix results and is used for a GitHub required status check.
12+
test_results:
13+
if: ${{ always() }}
14+
runs-on: ubuntu-22.04
15+
name: Test Results
16+
needs: [test]
17+
steps:
18+
- run: |
19+
result="${{ needs.test.result }}"
20+
if [[ $result == "success" || $result == "skipped" ]]; then
21+
exit 0
22+
else
23+
exit 1
24+
fi
25+
26+
test:
1227
runs-on: ubuntu-22.04
1328
strategy:
1429
fail-fast: false

0 commit comments

Comments
 (0)