Skip to content

Commit 2f638e5

Browse files
authored
[chore] enable codecov (#35)
1 parent bc82290 commit 2f638e5

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

.circleci/config.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,15 @@ install_repo_gpu: &install_repo_gpu
6969
export CUDA_HOME=/usr/local/cuda-10.1
7070
python setup.py build develop
7171
72+
73+
run_coverage: &run_coverage
74+
- run:
75+
name: Run Unit Tests With Coverage
76+
command: |
77+
pytest --cov-report=xml --cov=./
78+
#Uploading test coverage for Python code
79+
bash <(curl -s https://codecov.io/bash) -f coverage.xml -cF Python
80+
7281
run_unittests: &run_unittests
7382
- run:
7483
name: Run Unit Tests
@@ -200,6 +209,8 @@ jobs:
200209

201210
- <<: *run_unittests
202211

212+
- <<: *run_coverage
213+
203214
- store_test_results:
204215
path: test-results
205216

.coveragerc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[run]
2+
omit =
3+
tests/*
4+
setup.py

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,3 @@
99

1010
build/
1111
dist/
12-
13-
.coverage*

0 commit comments

Comments
 (0)