Skip to content

Commit 7ef1033

Browse files
committed
Added fallbacks for exit code 5 where we find no test for SEA
1 parent 4bbc653 commit 7ef1033

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

.github/workflows/coverage-check-parallel.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -93,16 +93,17 @@ jobs:
9393
9494
poetry run pytest "${{ matrix.test_file }}" "$TEST_FILTER" "$TEST_EXPRESSION" \
9595
--cov=src --cov-report=xml:$COVERAGE_FILE --cov-report=term \
96-
-v
97-
continue-on-error: false
96+
-v || [ $? -eq 5 ]
9897
9998
- name: Upload coverage artifact
10099
uses: actions/upload-artifact@v4
100+
if: always()
101101
with:
102102
name: coverage-$(basename "${{ matrix.test_file }}" .py)-${{ matrix.mode }}
103103
path: |
104104
.coverage
105105
coverage-*-${{ matrix.mode }}.xml
106+
if-no-files-found: warn
106107

107108
merge-coverage:
108109
runs-on: ubuntu-latest
@@ -158,10 +159,10 @@ jobs:
158159
fi
159160
done
160161
161-
# Combine all coverage data
162-
poetry run coverage combine .coverage.*
163-
poetry run coverage xml
164-
poetry run coverage report
162+
# Combine all coverage data (ignore if no files found)
163+
poetry run coverage combine .coverage.* 2>/dev/null || true
164+
poetry run coverage xml 2>/dev/null || echo '<coverage lines-covered="0" lines-valid="1"></coverage>' > coverage.xml
165+
poetry run coverage report 2>/dev/null || true
165166
166167
- name: Report coverage percentage
167168
run: |

0 commit comments

Comments
 (0)