File tree Expand file tree Collapse file tree 3 files changed +15
-2
lines changed Expand file tree Collapse file tree 3 files changed +15
-2
lines changed Original file line number Diff line number Diff 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+
7281run_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
Original file line number Diff line number Diff line change 1+ [run]
2+ omit =
3+ tests/*
4+ setup.py
Original file line number Diff line number Diff line change 99
1010build /
1111dist /
12-
13- .coverage *
You can’t perform that action at this time.
0 commit comments