Skip to content

Commit df7a4b9

Browse files
committed
github: Add another job to combine test results for status checks
1 parent 2b0c2c7 commit df7a4b9

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/workflows/test_actions.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ jobs:
2828
print(f"::error title=Test Failure::The Python version does not match. Got {version}, expected {expected_version}.")
2929
sys.exit(1)
3030
shell: python
31+
3132
test_setup_poetry:
3233
name: Test setup-poetry
3334
runs-on: ${{ matrix.os }}
@@ -53,6 +54,7 @@ jobs:
5354
exit 1
5455
fi
5556
shell: bash
57+
5658
test_check_project_version:
5759
name: Test check-project-version
5860
runs-on: ubuntu-latest
@@ -86,6 +88,7 @@ jobs:
8688
run: |
8789
echo "::error title=Test Failure::The previous step did not fail as expected."
8890
exit 1
91+
8992
test_update_project_version:
9093
name: Test update-project-version
9194
runs-on: ubuntu-latest
@@ -132,3 +135,15 @@ jobs:
132135
with:
133136
project-directory: test-project
134137
expected-version: 1.0.2.dev1
138+
139+
# This job is intended to combine the test results so we don't have to list
140+
# each matrix combination in the required status check settings. There are a
141+
# lot of corner cases that make this harder than it should be; see See
142+
# https://github.com/orgs/community/discussions/26822 for more info.
143+
test_results:
144+
name: Test Results
145+
runs-on: ubuntu-latest
146+
needs: [test_setup_python, test_setup_poetry, test_check_project_version, test_update_project_version]
147+
if: ${{ !cancelled() }}
148+
steps:
149+
- run: exit 0

0 commit comments

Comments
 (0)