Skip to content

Commit ad04f50

Browse files
[MRG] Codecov options + remove 2.7 (#178)
* cleanup setup * Ignore files in codecov * Remove externals module * change name to compile_args * bye py2.7 (you will be missed) * glob to ignore folders
1 parent 37456eb commit ad04f50

File tree

7 files changed

+100
-899
lines changed

7 files changed

+100
-899
lines changed

.coveragerc

Lines changed: 0 additions & 6 deletions
This file was deleted.

codecov.yml

Lines changed: 37 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,47 @@
1+
# Docs ref: https://docs.codecov.io/docs/codecovyml-reference
2+
# Validation check: $ curl --data-binary @codecov.yml https://codecov.io/validate
3+
4+
5+
codecov:
6+
token: 057953e4-d263-41c0-913c-5d45c0371df9
7+
bot: "codecov-io"
8+
strict_yaml_branch: "yaml-config"
9+
require_ci_to_pass: yes
10+
notify:
11+
wait_for_ci: yes
12+
113
coverage:
214
precision: 2
315
round: down
416
range: "70...100"
517
status:
618
project:
719
default:
8-
target: auto
9-
threshold: 0.01
10-
patch: false
20+
base: auto # target to compare against
21+
target: auto # target "X%" coverage to hit on project
22+
threshold: 1% # allow this much decrease from base
23+
if_ci_failed: error
24+
patch:
25+
default:
26+
base: auto # target to compare against
27+
target: 50% # target "X%" coverage to hit on patch
28+
# threshold: 50% # allow this much decrease on patch
1129
changes: false
30+
31+
parsers:
32+
gcov:
33+
branch_detection:
34+
conditional: yes
35+
loop: yes
36+
method: no
37+
macro: no
38+
39+
# https://docs.codecov.io/docs/ignoring-paths
40+
ignore:
41+
- "ot/gpu/**/*"
42+
43+
# https://docs.codecov.io/docs/pull-request-comments
1244
comment:
13-
layout: "header, diff, sunburst, uncovered"
45+
layout: header, diff, sunburst, uncovered
1446
behavior: default
15-
codecov:
16-
token: 057953e4-d263-41c0-913c-5d45c0371df9
47+
require_changes: true # if true: only post the comment if coverage changes

ot/externals/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)