Skip to content

Commit 8037796

Browse files
hleb-rubanaudividedmind
authored andcommitted
chore(ci): add validation job to Lint-and-Test workflow, as umbrella/rollup check of matrix tests status
1 parent c15eb7c commit 8037796

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/lint-and-test.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,17 @@ jobs:
3939
python: ${{ matrix.python }}
4040
- name: Test
4141
run: tox
42+
validation:
43+
name: Validation
44+
runs-on: ubuntu-latest
45+
needs: [test]
46+
if: always()
47+
steps:
48+
- name: Validate matrix test success
49+
run: |
50+
# Check the status of the 'test' job (which includes all matrix variations)
51+
if [ "${{ needs.test.result }}" != "success" ]; then
52+
echo "One or more matrix test jobs failed."
53+
exit 1
54+
fi
55+
echo "All matrix test jobs passed."

0 commit comments

Comments
 (0)