From 92869785474f4fe5fea9d95fedddb8f728ceaa19 Mon Sep 17 00:00:00 2001 From: CPU-216 <3125034290@stu.cpu.edu.cn> Date: Thu, 19 Mar 2026 02:33:58 +0800 Subject: [PATCH] chore(ci): add coverage gates via codecov.yml (#1228) (#1291) - Project target: 80% with 2% threshold (was: auto with 1%) - Patch target: 90% (was: 80% with 5% threshold) - Add PR comment config with reach/diff/flags layout - Enable require_changes to reduce comment noise --- codecov.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/codecov.yml b/codecov.yml index 3e31b00a..723c1175 100644 --- a/codecov.yml +++ b/codecov.yml @@ -2,9 +2,13 @@ coverage: status: project: default: - target: auto - threshold: 1% + target: 80% + threshold: 2% patch: default: - target: 80% - threshold: 5% \ No newline at end of file + target: 90% + +comment: + layout: "reach,diff,flags" + behavior: default + require_changes: true