Skip to content

Commit fae06c6

Browse files
committed
Add codecov config to prevent failing codecov checks
1 parent 43e5fc1 commit fae06c6

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.codecov.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
comment: false
2+
3+
coverage:
4+
status:
5+
project:
6+
default:
7+
# Commits pushed to master should not make the overall
8+
# project coverage decrease by more than x%:
9+
target: auto
10+
threshold: 20%
11+
patch:
12+
default:
13+
# Be tolerant on slight code coverage diff on PRs to limit
14+
# noisy red coverage status on github PRs.
15+
# Note: The coverage stats are still uploaded
16+
# to codecov so that PR reviewers can see uncovered lines
17+
target: auto
18+
threshold: 20%
19+
20+
codecov:
21+
notify:
22+
# Prevent coverage status to upload multiple times for parallel and long
23+
# running CI pipelines. This configuration is particularly useful on PRs
24+
# to avoid confusion. Note that this value is set to the number of Azure
25+
# Pipeline jobs uploading coverage reports.
26+
after_n_builds: 6

0 commit comments

Comments
 (0)