Update Codecov settings

This makes patch checks slightly more lenient, as they are not required.
This commit is contained in:
Tim Donohue
2020-09-30 09:14:23 -05:00
committed by GitHub
parent c67d2e6718
commit b4120f2053

View File

@@ -7,12 +7,20 @@
# Settings related to code coverage analysis # Settings related to code coverage analysis
coverage: coverage:
status: status:
# Configuration for project-level checks. This checks how the PR changes overall coverage.
project: project:
default: default:
# For each PR, auto compare coverage to previous commit. # For each PR, auto compare coverage to previous commit.
# Require that overall (project) coverage does NOT drop more than 0.5% # Require that overall (project) coverage does NOT drop more than 0.5%
target: auto target: auto
threshold: 0.5% threshold: 0.5%
# Configuration for patch-level checks. This checks the relative coverage of the new PR code ONLY.
patch:
default:
# For each PR, make sure the coverage of the new code is within 1% of current overall coverage.
# We let 'patch' be more lenient as we only require *project* coverage to not drop significantly.
target: auto
threshold: 1%
# Turn PR comments "off". This feature adds the code coverage summary as a # Turn PR comments "off". This feature adds the code coverage summary as a
# comment on each PR. See https://docs.codecov.io/docs/pull-request-comments # comment on each PR. See https://docs.codecov.io/docs/pull-request-comments