diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index 137fe4af..56c5ad02 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -62,4 +62,10 @@ jobs: shell: bash -el {0} run: | cd tests - pytest + pytest --cov=kliff --cov-report=xml + + - uses: codecov/codecov-action@v4 + if: matrix.python-version == "3.10" && github.repository == "openkim/kliff" + with: + token: ${{ secrets.CODECOV_TOKEN }} + file: ./coverage.xml diff --git a/setup.py b/setup.py index 77c3a491..1e627542 100644 --- a/setup.py +++ b/setup.py @@ -104,6 +104,7 @@ def get_readme(): extras_require={ "test": [ "pytest", + "pytest-cov", "kimpy", "emcee", "ptemcee",