Configure codecov project and patch status settings
Set the project coverage target to "auto", i.e., coverage in PRs must increase compared to the base branch, but allow 0.25% drop
Set the patch coverage target to 90%
Remove the undocumented configuration `if_no_uploads`
References:
@@ -4,10 +4,15 @@ codecov:
coverage:
status:
+ project:
+ default:
+ target: auto # increase overall coverage on each pull request
+ threshold: 0.25% # Allow the coverage to drop by X%
+ if_not_found: success
+ if_ci_failed: failure
patch:
default:
- target: '90'
- if_no_uploads: error
+ target: 90% # >=90% of new changes should be tested
if_not_found: success
if_ci_failed: failure
