diff --git a/.circleci/config.yml b/.circleci/config.yml index 3bb3f93..5ac321d 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -58,6 +58,8 @@ jobs: python3 -m venv venv . venv/bin/activate pip install -e . + pip install codecov + pip install coverage pip install tox - save_cache: @@ -71,6 +73,7 @@ jobs: command: | . venv/bin/activate tox + coverage run tests # store artifacts (for example logs, binaries, etc) # to be available in the web app or through the API diff --git a/tox.ini b/tox.ini index cc3903b..3e40011 100644 --- a/tox.ini +++ b/tox.ini @@ -14,13 +14,15 @@ minversion = 3.3.0 isolated_build = true [testenv] -passenv = CI CIRCLECI CIRCLE_* +passenv = CI CIRCLECI CIRCLE_* CODECOV_TOKEN deps = codecov + coverage opencv-python pytest scikit-image commands = python setup.py check -m -s py.test tests {posargs} + coverage xml -i codecov