From 4591a0ff1fb027f835ba6a806b6ec6b4ff33078a Mon Sep 17 00:00:00 2001 From: Oliver Beckstein Date: Thu, 25 Jun 2020 17:48:45 -0700 Subject: [PATCH 1/2] badge for codecov and pypi --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 69b71a5..5feba71 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,8 @@ # PROPKA 3 ![Tests](https://github.com/jensengroup/propka/workflows/Tests/badge.svg) +![codecov](https://codecov.io/gh/jensengroup/propka/branch/master/graph/badge.svg)](https://codecov.io/gh/jensengroup/propka) +[![PyPI version](https://badge.fury.io/py/propka.svg)](https://badge.fury.io/py/propka) PROPKA predicts the pKa values of ionizable groups in proteins (version 3.0) and protein-ligand complexes (version 3.1 and later) From d710ca96797018254a821b2d8e2307b50ff56aee Mon Sep 17 00:00:00 2001 From: Oliver Beckstein Date: Thu, 25 Jun 2020 17:58:41 -0700 Subject: [PATCH 2/2] 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