Skip to content

Commit dedd3a9

Browse files
authored
Ensure codecov upload runs even when coverage check fails (#2944)
1 parent e57ebd2 commit dedd3a9

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.github/workflows/test.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ jobs:
129129
name: html-report
130130
path: .tox/htmlcov
131131
- name: Upload coverage to Codecov
132+
if: success() || failure()
132133
uses: codecov/codecov-action@v5
133134
with:
134135
flags: unittests

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,10 @@ set_env =
8787
COVERAGE_FILE = {work_dir}/.coverage
8888
commands =
8989
coverage combine
90-
coverage report --fail-under=100 --skip-covered --show-missing
9190
coverage xml -o {work_dir}/coverage.xml
9291
coverage html -d {work_dir}/htmlcov
9392
diff-cover --compare-branch {env:DIFF_AGAINST:origin/main} {work_dir}/coverage.xml
93+
coverage report --fail-under=100 --skip-covered --show-missing
9494
depends =
9595
py314-parallel
9696
py313-parallel

0 commit comments

Comments
 (0)