forked from pvlib/pvlib-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
codecov.yml
69 lines (57 loc) · 1.67 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
codecov:
notify:
require_ci_to_pass: no
# "flags" are used to identify subsets of the overall codebase when calculating coverage.
# Currently used for "remote_data" (pvlib.iotools & forecast) and "core" (everything else).
# Because we only run the remote_data tests sometimes, we need to split it out so that
# codecov doesn't report a big drop in coverage when we don't run them.
# We also use "carryforward: true" so that, when we don't run remote_data tests, the last
# known coverage is carried forward and used in place of the missing coverage.
# https://docs.codecov.com/docs/flags
flags:
core:
paths:
- pvlib/
- '!pvlib/iotools/'
- '!pvlib/tests/iotools/'
- '!pvlib/forecast.py'
- '!pvlib/tests/test_forecast.py'
carryforward: false
remote-data:
paths:
- pvlib/iotools/
- pvlib/tests/iotools
- pvlib/forecast.py
- pvlib/tests/test_forecast.py
carryforward: true # if not run, use coverage from previous commit
coverage:
status: # each entry here represents a check status to report to GitHub
patch:
default:
target: 100%
project:
default: off
core:
target: auto
flags:
- core
remote-data:
target: auto
flags:
- remote-data
tests-core:
target: 95%
paths:
- 'pvlib/tests/.*'
- '!pvlib/tests/iotools/.*'
- '!pvlib/tests/test_forecast.py'
flags:
- core
tests-remote-data:
target: 95%
paths:
- 'pvlib/tests/iotools/.*'
- 'pvlib/tests/test_forecast.py'
flags:
- remote-data
comment: off