From a78158b10cb04b1be04dd79bfa9e41780c3982c9 Mon Sep 17 00:00:00 2001 From: Abhinav Singh Date: Wed, 24 Nov 2021 20:55:20 +0530 Subject: [PATCH 1/2] Update codecov config to include separate tests and lib sub-projects --- codecov.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/codecov.yml b/codecov.yml index 5a8572e12a..5fcc648a1c 100644 --- a/codecov.yml +++ b/codecov.yml @@ -6,9 +6,21 @@ codecov: coverage: status: project: - default: + default: false # disable the default status that measures entire project + 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% + # examples: # declare a new status context "examples" patch: default: + target: auto + base: auto threshold: 1% +comment: + require_changes: true ... From 0d823e7cc7dcaa8043a5dabdcfc40c2f91b5b2ff Mon Sep 17 00:00:00 2001 From: Abhinav Singh Date: Wed, 24 Nov 2021 21:14:18 +0530 Subject: [PATCH 2/2] Yaml lint --- codecov.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codecov.yml b/codecov.yml index 5fcc648a1c..d120bd4956 100644 --- a/codecov.yml +++ b/codecov.yml @@ -7,6 +7,7 @@ coverage: status: project: 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: @@ -15,7 +16,6 @@ coverage: paths: - "!tests/" # remove all files in "tests/" threshold: 1% - # examples: # declare a new status context "examples" patch: default: target: auto