diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index e6384dc..826cb5c 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -31,6 +31,11 @@ jobs: - name: Test with pytest run: | conda install pytest-cov + pytest + - name: Generate coverage reports + run: | + conda remove --force benchcab + pip install -e . pytest --cov=./ --cov-report=xml - name: Upload coverage reports to Codecov uses: codecov/codecov-action@v3 diff --git a/setup.cfg b/setup.cfg index b2a4e50..8adf2f0 100644 --- a/setup.cfg +++ b/setup.cfg @@ -25,6 +25,9 @@ addopts = --ignore docs/conf.py --import-mode=importlib +[coverage:report] +include = src/* + [options] package_dir= =src