如何解决Codecov 未通过 Github 操作检查
我有一个私有的 Github 存储库,我想将它与 Codecov 集成并检查每个打开的 PR 的覆盖率。就生成覆盖率报告并将该报告上传到 Codecov 而言,一切都很好,但是如果项目的测试覆盖率没有达到一定的百分比,我就无法让 Github 检查失败。 >
作为参考,我的 codecode.yml
配置是:
codecov:
require_ci_to_pass: yes
coverage:
precision: 2
round: down
range: '90...100'
status:
project:
default: # This can be anything,but it needs to exist as the name
# basic settings
target: 90%
threshold: 0%
if_ci_Failed: error #success,failure,error,ignore
only_pulls: false
patch:
default:
target: auto
threshold: 0%
parsers:
gcov:
branch_detection:
conditional: yes
loop: yes
method: no
macro: no
comment:
layout: 'reach,diff,flags,files,footer'
behavior: default
require_changes: no
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。