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