From d710ca96797018254a821b2d8e2307b50ff56aee Mon Sep 17 00:00:00 2001 From: Oliver Beckstein Date: Thu, 25 Jun 2020 17:58:41 -0700 Subject: [PATCH] exclude tests themselves from coverage reporting --- .github/workflows/python-package.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 3858d08..137e20a 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -37,7 +37,7 @@ jobs: flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics - name: Test with pytest and coverage run: | - coverage run -m pytest + coverage run --source=propka -m pytest coverage report -m | tee coverage.txt coverage html - name: Upload coverage to https://codecov.io/gh/jensengroup/propka