From 80fb9d226c0c4c24690ac960b68a70aebe982f85 Mon Sep 17 00:00:00 2001 From: Roman Yurchak Date: Mon, 5 Sep 2022 07:30:27 +0200 Subject: [PATCH] Add codecov configuration (#3067) --- .codecov.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .codecov.yml 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