Skip to content

Commit

Permalink
[chore] enable codecov (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
msbaines authored Aug 13, 2020
1 parent bc82290 commit 2f638e5
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
11 changes: 11 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,15 @@ install_repo_gpu: &install_repo_gpu
export CUDA_HOME=/usr/local/cuda-10.1
python setup.py build develop
run_coverage: &run_coverage
- run:
name: Run Unit Tests With Coverage
command: |
pytest --cov-report=xml --cov=./
#Uploading test coverage for Python code
bash <(curl -s https://codecov.io/bash) -f coverage.xml -cF Python
run_unittests: &run_unittests
- run:
name: Run Unit Tests
Expand Down Expand Up @@ -200,6 +209,8 @@ jobs:

- <<: *run_unittests

- <<: *run_coverage

- store_test_results:
path: test-results

Expand Down
4 changes: 4 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[run]
omit =
tests/*
setup.py
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,3 @@

build/
dist/

.coverage*

0 comments on commit 2f638e5

Please sign in to comment.