ci: Add codecov config file

Be tolerant for coverage of new PRs
This commit is contained in:
Kévin Commaille
2022-04-25 12:43:22 +02:00
parent 314a9dec6c
commit 8090220963

16
codecov.yaml Normal file
View File

@@ -0,0 +1,16 @@
coverage:
status:
project:
default:
# Commits pushed to master should not make the overall
# project coverage decrease by more than 1%:
target: auto
threshold: 1%
patch:
default:
# Be tolerant on slight code coverage diff on PRs to limit
# noisy red coverage status on github PRs.
# Note: The coverage stats are still uploaded
# to codecov so that PR reviewers can see uncovered lines
target: auto
threshold: 1%