Skip to content

Commit 819f78e

Browse files
committed
ENH: Update codecov.io configuration
This sets it to report even if CI fails (just to get to see numbers). Separate out coverage for lines in tests (which should be 100%, but is currently ~97.7%), versus those in the library itself.
1 parent 5f8244b commit 819f78e

File tree

2 files changed

+26
-5
lines changed

2 files changed

+26
-5
lines changed

.coveragerc

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,8 @@
22
source=
33
matplotlib
44
mpl_toolkits
5-
[report]
6-
omit =
7-
lib/matplotlib/tests/*
8-
lib/matplotlib/testing/*
9-
lib/mpl_toolkits/tests/*
105

6+
[report]
117
exclude_lines =
128
raise NotImplemented
139
def __str__

ci/codecov.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,28 @@
11
# codecov can find this file anywhere in the repo, so we don't need to clutter
22
# the root folder.
33
comment: false
4+
5+
codecov:
6+
notify:
7+
require_ci_to_pass: no
8+
9+
coverage:
10+
status:
11+
patch:
12+
default:
13+
target: '80'
14+
if_no_uploads: error
15+
if_not_found: success
16+
if_ci_failed: failure
17+
project:
18+
default: false
19+
library:
20+
target: auto
21+
if_no_uploads: error
22+
if_not_found: success
23+
if_ci_failed: failure
24+
paths: '!lib/.*/tests/.*'
25+
26+
tests:
27+
target: 97.7%
28+
paths: 'lib/.*/tests/.*'

0 commit comments

Comments
 (0)