Skip to content

Commit 47df7c7

Browse files
committed
CI: prevent Codecov giving false CI failures and wrong PR annotations
See, e.g., scipygh-13040 for an example of a PR with hundreds of comments on lines that weren't even touched. See also https://docs.codecov.io/docs/unexpected-coverage-changes for the very many reasons why Codecov can be wrong.
1 parent c068959 commit 47df7c7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

codecov.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,13 @@ coverage:
1111
target: 1
1212
patch:
1313
default:
14-
target: 90
14+
# Must be 0%, because many PRs touch files that we don't have coverage
15+
# results for (build files, scripts, tools/, etc.)
16+
target: 0
1517
if_no_uploads: error
1618
if_not_found: success
1719
if_ci_failed: failure
1820
changes: false
1921
comment: off
22+
github_checks:
23+
annotations: false

0 commit comments

Comments
 (0)