Skip to content

Commit fc4edf7

Browse files
committed
Improve codecov settings
- set a more relaxed threshold - ignore plotting, as we won't test it
1 parent 871cb64 commit fc4edf7

1 file changed

Lines changed: 15 additions & 11 deletions

File tree

codecov.yml

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,20 @@
11
coverage:
2+
ignore:
3+
- "pedpy/plotting/*" # Exclude plotting for coverage, as we will not test it
24
status:
3-
project: #add everything under here, more options at https://docs.codecov.com/docs/commit-status
5+
project:
46
default:
5-
# basic
6-
target: auto #default
7-
threshold: 2%
7+
target: auto
8+
threshold: 50% # Allow more fluctuation
9+
patch:
10+
default:
11+
target: auto
12+
threshold: 10% # Stricter for new changes
813

914
comment:
10-
layout: " diff, flags, files"
11-
behavior: default
12-
require_changes: false # if true: only post the comment if coverage changes
13-
require_base: false # [true :: must have a base report to post]
14-
require_head: true # [true :: must have a head report to post]
15-
hide_project_coverage: false # [true :: only show coverage on the git diff aka patch coverage]]
16-
15+
layout: "diff, files, tree, grid"
16+
behavior: new # Only post for new commits
17+
require_changes: false # Always post comments
18+
require_base: false # Don’t block if base is missing
19+
require_head: false # Don’t block if head is missing
20+
hide_project_coverage: false # Show project-level coverage

0 commit comments

Comments
 (0)