Skip to content

Commit b5750ac

Browse files
committed
FIX: continue running even if some tests fail
1 parent f5cbd94 commit b5750ac

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/pytest.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ jobs:
4747
4848
- name: Test with pytest
4949
id: pytest
50+
continue-on-error: true
5051
run: |
5152
export DISPLAY=:99
5253
Xvfb :99 -screen 0 1024x768x16 &
@@ -77,7 +78,7 @@ jobs:
7778
if: ${{ always() }}
7879

7980
upload_coverage_to_coveralls:
80-
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
81+
if: (github.event_name == 'push' && github.ref == 'refs/heads/master') && (success() || failure())
8182
runs-on: ubuntu-latest
8283
needs: pytest
8384

@@ -99,6 +100,7 @@ jobs:
99100
# TODO: create a badge that presents the result of the Upload coverage xml report step
100101

101102
check_coverage:
103+
if: success() || failure()
102104
runs-on: ubuntu-latest
103105
needs: pytest # This will ensure this job runs after 'pytest'
104106

@@ -125,7 +127,7 @@ jobs:
125127
coverage report --fail-under=32
126128
127129
add_coverage_to_pullrequest:
128-
if: github.event_name == 'pull_request'
130+
if: github.event_name == 'pull_request' && (success() || failure())
129131
runs-on: ubuntu-latest
130132
needs: pytest # This will ensure this job runs after 'pytest'
131133

0 commit comments

Comments
 (0)