Skip to content

Commit 7e1e4b6

Browse files
committed
fix(tests): detect when tests fail
1 parent 1810781 commit 7e1e4b6

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/pytest.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
4848
- name: Test with pytest
4949
id: pytest
50-
continue-on-error: true
50+
continue-on-error: false
5151
run: |
5252
export DISPLAY=:99
5353
Xvfb :99 -screen 0 1024x768x16 &
@@ -124,6 +124,11 @@ jobs:
124124
125125
- name: Check coverage
126126
run: |
127+
# Check if pytest job failed
128+
if [ "${{ needs.pytest.result }}" == "failure" ]; then
129+
echo "Pytest failed - failing coverage check"
130+
exit 1
131+
fi
127132
coverage report --fail-under=40
128133
129134
add_coverage_to_pullrequest:

0 commit comments

Comments
 (0)