-
Notifications
You must be signed in to change notification settings - Fork 21
/
codecov.yml
47 lines (42 loc) · 1.27 KB
/
codecov.yml
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
# Codecov configuration to make it a bit less noisy
codecov:
# set new Default branch
branch: main
notify:
require_ci_to_pass: yes
coverage:
precision: 2
round: down
range: 70...100
status:
patch: false
project:
default:
# inspired by
# github.com/theochem/iodata/blob/73eee89111bcec426d9e8651ec5d85541c7d6d24/.codecov.yml#L1-L9
# Commits and PRs are never marked as "failed" due coverage issues.
# Codecov is only used as an informal tool when reviewing PRs,
# not in the least because of the many false failures.
target: 0%
threshold: 100%
# ignore statistics for the testing folders
ignore:
- setup.py
- updateheaders.py
- .*/test/.*
- .*/examples/.*
- .*/__int__.py
- .*/_version.py
- "test_*.rb" # wildcards accepted
- .*/data/.*
- .*/versioneer.py
# - "**/*.pyc" # glob accepted
comment:
layout: "reach, header, diff, uncovered, files, changes,"
behavior: default
require_changes: false # if true: only post the comment if coverage changes
require_base: no # [yes :: must have a base report to post]
require_head: yes # [yes :: must have a head report to post]
branches: # branch names that can post comment
- staging
- main