From 55169a4db1a0d06cbb5c21f1ef97ad4fd8d86cc6 Mon Sep 17 00:00:00 2001 From: Sambit Panda <36676569+sampan501@users.noreply.github.com> Date: Wed, 20 Jan 2021 00:09:00 -0500 Subject: [PATCH] limit coverage per module --- .circleci/config.yml | 4 ++-- pytest.ini | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 0246a08de..c65397687 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -60,7 +60,7 @@ jobs: name: run tests and coverage command: | . venv/bin/activate - pytest --junitxml=test-reports/junit.xml --cov-report=html:htmlcov hyppo/<< parameters.module >> + pytest --junitxml=test-reports/junit.xml --cov-report=html:htmlcov --cov=hyppo/<< parameters.module >> hyppo/<< parameters.module >> - store_test_results: path: test-reports - store_artifacts: @@ -68,7 +68,7 @@ jobs: - store_artifacts: path: htmlcov - codecov/upload: - file: "./htmlcov/" + file: "./htmlcov/index.html" deploy: docker: - image: cimg/python:3.8 diff --git a/pytest.ini b/pytest.ini index acb8f8d5d..b99f2661b 100644 --- a/pytest.ini +++ b/pytest.ini @@ -1,5 +1,5 @@ [pytest] -addopts = --cov=hyppo --doctest-modules +addopts = --doctest-modules deselect = "hyppo/independence/kmerf.py"