From 49020d0be5666fde1075d4ddf695e306a27ae920 Mon Sep 17 00:00:00 2001 From: Toby Coleman Date: Sun, 22 Jun 2025 20:36:29 +0100 Subject: [PATCH 1/2] Add codecov config --- codecov.yml | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 codecov.yml diff --git a/codecov.yml b/codecov.yml new file mode 100644 index 00000000..fd131d63 --- /dev/null +++ b/codecov.yml @@ -0,0 +1,6 @@ +coverage: + status: + project: + default: + target: auto + threshold: 5 # All 5% drop in coverage \ No newline at end of file From 065432c4ad64225d3245e80d5f8e9e6bdb1e53ea Mon Sep 17 00:00:00 2001 From: Toby Coleman Date: Wed, 25 Jun 2025 19:37:14 +0100 Subject: [PATCH 2/2] Revised rule --- codecov.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/codecov.yml b/codecov.yml index fd131d63..4b9888c5 100644 --- a/codecov.yml +++ b/codecov.yml @@ -1,6 +1,12 @@ coverage: status: + # Overall project status: https://docs.codecov.com/docs/commit-status#project-status project: default: target: auto - threshold: 5 # All 5% drop in coverage \ No newline at end of file + threshold: 1% # Allow 1% drop in coverage + # Status of the PR/commit: https://docs.codecov.com/docs/commit-status#patch-status + patch: + default: + target: 80% + threshold: 0%