Update codecov config to include separate tests and lib sub-projects (#788)

* Update codecov config to include separate tests and lib sub-projects

* Yaml lint
This commit is contained in:
Abhinav Singh 2021-11-24 22:12:40 +05:30 committed by GitHub
parent 54baf62bea
commit 78d20d98f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 13 additions and 1 deletions

View File

@ -6,9 +6,21 @@ codecov:
coverage:
status:
project:
default:
default: false # disable the default status that measures entire project
# examples: # declare a new status context "examples"
tests: # declare a new status context "tests"
# target: 100% # we always want 100% coverage here
paths:
- "tests/" # only include coverage in "tests/" folder
lib: # declare a new status context "lib"
paths:
- "!tests/" # remove all files in "tests/"
threshold: 1%
patch:
default:
target: auto
base: auto
threshold: 1%
comment:
require_changes: true
...