-
Notifications
You must be signed in to change notification settings - Fork 36
Expand file tree
/
Copy pathcodecov.yml
More file actions
85 lines (77 loc) · 2.54 KB
/
codecov.yml
File metadata and controls
85 lines (77 loc) · 2.54 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
# Docs ref: https://docs.codecov.io/docs/codecovyml-reference
# Validation check: $ curl --data-binary @codecov.yml https://codecov.io/validate
codecov:
bot: "codecov-io"
strict_yaml_branch: "yaml-config"
require_ci_to_pass: yes # yamllint disable-line rule:truthy
notify:
wait_for_ci: yes # yamllint disable-line rule:truthy
# https://docs.codecov.com/docs/commit-status
coverage:
precision: 2
round: down
range: "90...100"
status:
default_rules: # this behavior will be applied to all checks by default
flag_coverage_not_uploaded_behavior: exclude
# don't send status checks that don't have flag coverage uploaded
project:
default:
flags:
- code
- datasets
code:
flags:
- code
datasets:
flags:
- datasets
patch:
default:
flags:
- code
- datasets
code:
flags:
- code
datasets:
flags:
- datasets
changes: false
parsers:
gcov:
branch_detection:
conditional: yes # yamllint disable-line rule:truthy
loop: yes # yamllint disable-line rule:truthy
method: no # yamllint disable-line rule:truthy
macro: no # yamllint disable-line rule:truthy
# https://docs.codecov.io/docs/ignoring-paths
# ignore:
# - "ot/helpers/openmp_helpers.py"
# https://docs.codecov.io/docs/pull-request-comments
comment:
layout: header, diff, sunburst, uncovered
behavior: default
require_changes: true # if true: only post the comment if coverage changes
# https://docs.codecov.com/docs/flags
flag_management:
default_rules: # the rules that will be followed for any flag added, generally
# https://docs.codecov.com/docs/carryforward-flags
carryforward: true # Reference of past coverage for tests
statuses:
- type: project
target: auto # target "X%" coverage to hit on project
threshold: 0.5% # allow this much decrease from base
if_ci_failed: error
- type: patch
base: auto # target to compare against
target: 50% # target "X%" coverage to hit on patch
# threshold: 50% # allow this much decrease on patch
individual_flags: # exceptions to the default rules above, stated flag by flag
- name: code
paths:
- "!skada/datasets/" # remove all files in "datasets/"
- name: datasets
paths:
- "!skada/" # only dataset
- "skada/datasets/" # only dataset