From 09d7cb9c2c44af7b848e5e7a393ee7b1159b9200 Mon Sep 17 00:00:00 2001 From: xwen-winnie <657844267@qq.com> Date: Wed, 31 Aug 2022 10:56:55 +0800 Subject: [PATCH] target to 70% --- codecov.yml | 38 ++++++++++++++++++++++++++------------ 1 file changed, 26 insertions(+), 12 deletions(-) diff --git a/codecov.yml b/codecov.yml index 67b7caaba..595689aa0 100644 --- a/codecov.yml +++ b/codecov.yml @@ -1,14 +1,28 @@ -coverage: - precision: 2 - round: down - status: - patch: - default: - target: 80% - project: - default: - target: 80% +codecov: + ci: + - prow.qiniu.io # prow 里面运行需添加,其他 CI 不要 + require_ci_to_pass: no # 改为 no,否则 codecov 会等待其他 GitHub 上所有 CI 通过才会留言。 + +github_checks: #关闭github checks + annotations: false comment: - layout: "header, diff, uncovered, files" - behavior: default \ No newline at end of file + layout: "reach, diff, flags, files" + behavior: new # 默认是更新旧留言,改为 new,删除旧的,增加新的。 + require_changes: false # if true: only post the comment if coverage changes + require_base: no # [yes :: must have a base report to post] + require_head: yes # [yes :: must have a head report to post] + branches: # branch names that can post comment + - "master" + +coverage: + status: # 评判 pr 通过的标准 + patch: off + project: # project 统计所有代码x + default: + # basic + target: 70% # 总体通过标准 + threshold: 3% # 允许单次下降的幅度 + base: auto + if_not_found: success + if_ci_failed: error