mirror of
https://github.com/langgenius/dify.git
synced 2026-11-10 21:35:45 +08:00
ci(codecov): report project coverage per flag (#45366)
This commit is contained in:
1 parent
2f20f4c5ef
commit
b531dcbeea
1 file changed
+14
-12
+14
-12
@@ -1,30 +1,32 @@
|
||||
coverage:
|
||||
status:
|
||||
project:
|
||||
default:
|
||||
# Report project coverage per flag (see flag_management) instead of one combined total,
|
||||
# so a PR touching only one area is not judged by another area's carried-forward data.
|
||||
project: off
|
||||
|
||||
flag_management:
|
||||
default_rules:
|
||||
carryforward: true
|
||||
statuses:
|
||||
- type: project
|
||||
target: auto
|
||||
# Absorb sub-percent coverage noise (rounding, trivial added lines, CVA variants, etc).
|
||||
threshold: 1%
|
||||
# Deleting covered code during refactors/migrations must not regress base.
|
||||
removed_code_behavior: adjust_base
|
||||
|
||||
flags:
|
||||
web:
|
||||
individual_flags:
|
||||
- name: web
|
||||
paths:
|
||||
- "web/"
|
||||
carryforward: true
|
||||
|
||||
dify-ui:
|
||||
- name: dify-ui
|
||||
paths:
|
||||
- "packages/dify-ui/"
|
||||
carryforward: true
|
||||
|
||||
api:
|
||||
- name: api
|
||||
paths:
|
||||
- "api/"
|
||||
carryforward: true
|
||||
|
||||
cli:
|
||||
- name: cli
|
||||
paths:
|
||||
- "cli/"
|
||||
carryforward: true
|
||||
Reference in new issue
Block a user