diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index 137fe4af..bf84452f 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.os == 'ubuntu-latest' && 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",