Skip to content

Commit 8c6a976

Browse files
committed
try codecov setup
1 parent f141b7e commit 8c6a976

File tree

3 files changed

+19
-2
lines changed

3 files changed

+19
-2
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ jobs:
99
with:
1010
repo-token: ${{ secrets.GITHUB_TOKEN }}
1111
artifact-path: 0/docs/build/html/index.html
12-
circleci-jobs: build_doc
12+
circleci-jobs: build_docs

.travis.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ before_install:
3434
install:
3535
- pip install -r requirements.txt
3636
- pip install -U "numpy>=1.14" scipy # for numpy array formatting in doctests
37-
- pip install flake8 pytest "pytest-cov<2.6"
37+
- pip install flake8 pytest "pytest-cov<2.6" codecov
3838
- pip install -U "sklearn"
3939
- pip install .
4040
# command to run tests + check syntax style
@@ -45,3 +45,6 @@ script:
4545
- flake8 examples/ ot/ test/
4646
- python -m pytest -v test/ ot/ --doctest-modules --ignore ot/gpu/ --cov=ot
4747
# - py.test ot test
48+
after_script:
49+
# Need to run from source dir to execute "git" commands
50+
- codecov;

codecov.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
coverage:
2+
precision: 2
3+
round: down
4+
range: "70...100"
5+
status:
6+
project:
7+
default:
8+
target: auto
9+
threshold: 0.01
10+
patch: false
11+
changes: false
12+
comment:
13+
layout: "header, diff, sunburst, uncovered"
14+
behavior: default

0 commit comments

Comments
 (0)