diff options
author | Alexandre Gramfort <alexandre.gramfort@m4x.org> | 2020-04-21 11:00:24 +0200 |
---|---|---|
committer | Alexandre Gramfort <alexandre.gramfort@m4x.org> | 2020-04-21 11:00:24 +0200 |
commit | 8c6a976c9d1225e469e22f7ef1c700eaf1e08dd7 (patch) | |
tree | 9b2ad24f7646528dc4ac192d674abca006a4f08d | |
parent | f141b7ecec8f69db29fb3dcf1efd1d00d96db87d (diff) |
try codecov setup
-rw-r--r-- | .github/workflows/main.yml | 2 | ||||
-rw-r--r-- | .travis.yml | 5 | ||||
-rw-r--r-- | codecov.yml | 14 |
3 files changed, 19 insertions, 2 deletions
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ca10c8c..1a8a759 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -9,4 +9,4 @@ jobs: with: repo-token: ${{ secrets.GITHUB_TOKEN }} artifact-path: 0/docs/build/html/index.html - circleci-jobs: build_doc + circleci-jobs: build_docs diff --git a/.travis.yml b/.travis.yml index b9cc88f..3f63867 100644 --- a/.travis.yml +++ b/.travis.yml @@ -34,7 +34,7 @@ before_install: install: - pip install -r requirements.txt - pip install -U "numpy>=1.14" scipy # for numpy array formatting in doctests - - pip install flake8 pytest "pytest-cov<2.6" + - pip install flake8 pytest "pytest-cov<2.6" codecov - pip install -U "sklearn" - pip install . # command to run tests + check syntax style @@ -45,3 +45,6 @@ script: - flake8 examples/ ot/ test/ - python -m pytest -v test/ ot/ --doctest-modules --ignore ot/gpu/ --cov=ot # - py.test ot test +after_script: + # Need to run from source dir to execute "git" commands + - codecov; diff --git a/codecov.yml b/codecov.yml new file mode 100644 index 0000000..1e7b888 --- /dev/null +++ b/codecov.yml @@ -0,0 +1,14 @@ +coverage: + precision: 2 + round: down + range: "70...100" + status: + project: + default: + target: auto + threshold: 0.01 + patch: false + changes: false +comment: + layout: "header, diff, sunburst, uncovered" + behavior: default |