Skip to content

Commit 000d91e

Browse files
authored
Merge pull request #2828 from alicevision/codecov-conf
Create .codecov.yml
2 parents 7f0c5e2 + 3486e09 commit 000d91e

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed

.codecov.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# Codecov configuration for Meshroom
2+
# This configuration prevents CI from failing due to small coverage decreases
3+
# while maintaining quality standards
4+
5+
codecov:
6+
# Require CI to pass before processing results
7+
require_ci_to_pass: yes
8+
9+
coverage:
10+
status:
11+
project:
12+
default:
13+
# Allow coverage to drop by up to 1% without failing
14+
threshold: 1%
15+
# Set a minimum target coverage (adjust based on your current ~77%)
16+
target: 75%
17+
# Only check coverage on lines that are coverable
18+
base: auto
19+
# Ignore if no coverage files are uploaded
20+
if_no_uploads: error
21+
# Don't fail if coverage file not found
22+
if_not_found: success
23+
# Fail if CI failed
24+
if_ci_failed: error
25+
# Only run on these branches
26+
branches:
27+
- develop
28+
- master
29+
- main
30+
31+
patch:
32+
default:
33+
# For new code, allow 2% threshold since new features may need refactoring
34+
threshold: 2%
35+
# New code should aim for 70% coverage (lower than overall project)
36+
target: 70%
37+
# Only run patch coverage on pull requests
38+
only_pulls: true
39+
if_no_uploads: error
40+
if_not_found: success
41+
if_ci_failed: error
42+
43+
precision: 2
44+
round: down
45+
range: "70...95"
46+
47+
# Ignore certain files/directories that shouldn't affect coverage
48+
ignore:
49+
- "setup.py"
50+
- "docs/"
51+
- "scripts/"
52+
- "bin/"

0 commit comments

Comments
 (0)