codecov.yml 1.1 KB

12345678910111213141516171819202122232425262728
  1. codecov:
  2. ci:
  3. - prow.qiniu.io # prow 里面运行需添加,其他 CI 不要
  4. require_ci_to_pass: no # 改为 no,否则 codecov 会等待其他 GitHub 上所有 CI 通过才会留言。
  5. github_checks: #关闭github checks
  6. annotations: false
  7. comment:
  8. layout: "reach, diff, flags, files"
  9. behavior: new # 默认是更新旧留言,改为 new,删除旧的,增加新的。
  10. require_changes: false # if true: only post the comment if coverage changes
  11. require_base: no # [yes :: must have a base report to post]
  12. require_head: yes # [yes :: must have a head report to post]
  13. branches: # branch names that can post comment
  14. - "master"
  15. coverage:
  16. status: # 评判 pr 通过的标准
  17. patch: off
  18. project: # project 统计所有代码x
  19. default:
  20. # basic
  21. target: 89% # 总体通过标准
  22. threshold: 3% # 允许单次下降的幅度
  23. base: auto
  24. if_not_found: success
  25. if_ci_failed: error