-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcodecov.yml
More file actions
90 lines (84 loc) · 1.97 KB
/
Copy pathcodecov.yml
File metadata and controls
90 lines (84 loc) · 1.97 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
# Codecov configuration
# https://docs.codecov.com/docs/codecov-yaml
# Coverage configuration
coverage:
# How much coverage you require
status:
project:
default:
# Overall project coverage
target: 70% # Target coverage percentage
threshold: 2% # Allow coverage to drop by 2%
base: auto
if_not_found: success
if_ci_failed: success
only_pulls: false
patch:
default:
# Coverage for new/modified code in PRs
target: 80% # New code should have higher coverage
threshold: 5%
base: auto
if_not_found: success
if_ci_failed: success
# Parser configuration
parsers:
gcov:
branch_detection:
conditional: yes
loop: yes
method: no
macro: no
# Comment configuration for PR comments
comment:
layout: "reach,diff,flags,tree,reach"
behavior: default
require_changes: false
require_base: false
require_head: true
hide_project_coverage: false
# Ignore certain files/paths from coverage
ignore:
- "tests/**/*"
- "**/*_test.py"
- "**/test_*.py"
- "setup.py"
- "docs/**/*"
- "examples/**/*"
- "scripts/**/*"
- ".github/**/*"
- "**/__pycache__/**/*"
- "**/migrations/**/*"
# Optional features (users may not install)
- "tenets/viz/**/*"
# Language analyzers (boilerplate, 18K lines)
- "tenets/core/analysis/implementations/*_analyzer.py"
# Infrastructure utilities
- "tenets/utils/external_sources.py"
- "tenets/utils/multiprocessing.py"
- "tenets/utils/timing.py"
# Flag configuration for different test types
flags:
unittests:
paths:
- tenets/
carryforward: true
optional-ml:
paths:
- tenets/core/ml/
carryforward: true
optional-viz:
paths:
- tenets/viz/
carryforward: true
optional-web:
paths:
- tenets/web/
carryforward: true
optional-all:
paths:
- tenets/
carryforward: true
# GitHub integration settings
github_checks:
annotations: true