diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 565195e..9b2aeb8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -36,5 +36,13 @@ jobs: - name: Install package run: pip install -e . - - name: Pytest - run: pytest \ No newline at end of file + - name: Pytest with coverage + run: coverage run --source=src -m pytest + + - name: Upload coverage to Coveralls + if: matrix.os == 'ubuntu-latest' + run: coveralls + env: + GITHUB_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} + + diff --git a/pyproject.toml b/pyproject.toml index 2cddafb..e223aa9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -41,4 +41,6 @@ addopts = "-sv" dev = [ "build", "pytest", + "coverage", + "coveralls" ] \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index 5b69ca8..4758a5b 100644 --- a/requirements.txt +++ b/requirements.txt @@ -17,3 +17,5 @@ sphinx-autodoc-typehints nbsphinx sphinx-gallery sphinx-rtd-theme +coverage +coveralls \ No newline at end of file