Skip to content

Commit 3fce171

Browse files
chore: add codecov.yml with carryforward flags
CI only tests changed modules, so project-wide coverage drops on PRs that don't re-test every module. Fix by: - Enabling carryforward flags so untested module coverage persists - Setting project check to only_pulls mode - Ignoring test files and migrations from coverage metrics - Setting patch coverage target to 70%
1 parent 81abdc7 commit 3fce171

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

codecov.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Codecov configuration for OpenSPP
2+
# https://docs.codecov.io/docs/codecov-yaml
3+
4+
coverage:
5+
status:
6+
project:
7+
default:
8+
# Only check coverage on files changed in this PR, not the entire project.
9+
# CI only tests changed modules, so project-wide coverage would always drop
10+
# on PRs that don't re-test every module.
11+
only_pulls: true
12+
patch:
13+
default:
14+
target: 70%
15+
16+
# Each module uploads with its own flag (flags: ${{ matrix.module }} in CI).
17+
# Carry forward coverage from previous commits so modules not tested in this
18+
# PR still contribute to overall project coverage.
19+
flag_management:
20+
default_rules:
21+
carryforward: true
22+
23+
comment:
24+
layout: "reach,diff,flags,files"
25+
behavior: default
26+
require_changes: false
27+
28+
ignore:
29+
- "**/tests/**"
30+
- "**/migrations/**"
31+
- "scripts/**"

0 commit comments

Comments
 (0)