diff --git a/.codecov.yml b/.codecov.yml new file mode 100644 index 000000000..c872c7272 --- /dev/null +++ b/.codecov.yml @@ -0,0 +1,25 @@ +comment: false + +coverage: + status: + project: + default: + # Commits pushed to main 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% + +codecov: + notify: + # Prevent coverage status to upload multiple times for parallel and long + # running CI pipelines. This configuration is particularly useful on PRs + # to avoid confusion. + after_n_builds: 1