Add codecov configuration (#3067)

This commit is contained in:
Roman Yurchak 2022-09-05 07:30:27 +02:00 committed by GitHub
parent 0e363f0e1c
commit 80fb9d226c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 25 additions and 0 deletions

25
.codecov.yml Normal file
View File

@ -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