From d1aae90c2f91e7f6553d04ece7bce33867f537f1 Mon Sep 17 00:00:00 2001 From: Graham Knop Date: Wed, 15 May 2024 10:27:59 +0200 Subject: [PATCH] set a 1% theshold for coverage changes Our tests are somewhat inconsistent in their coverage, so coverage can go down slightly even with unrelated changes. We also have untested code, and small tweaks will often be shown as a reduction in coverage. Setting a 1% threshold will reduce friction on both of these cases. Any larger changes will still require an increase in coverage, so we should still trend upward over time. --- codecov.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/codecov.yml b/codecov.yml index 72214a6d01b..be10c079330 100644 --- a/codecov.yml +++ b/codecov.yml @@ -6,3 +6,11 @@ comment: require_base: false # [true :: must have a base report to post] require_head: true # [true :: must have a head report to post] hide_project_coverage: false # [true :: only show coverage on the git diff] +coverage: + status: + patch: + default: + threshold: 1% + project: + default: + threshold: 1%