diff --git a/.github/workflows/python-tests.yml b/.github/workflows/python-tests.yml index 0e1614b..07f31ae 100644 --- a/.github/workflows/python-tests.yml +++ b/.github/workflows/python-tests.yml @@ -31,7 +31,7 @@ jobs: run: pip install --user --upgrade hatch - name: Test with pytest - run: hatch run test-cov + run: hatch run cov-report env: PYTHONDEVMODE: 1 diff --git a/pyproject.toml b/pyproject.toml index a8bf355..290ba27 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -48,7 +48,11 @@ dependencies = [ [tool.hatch.envs.default.scripts] test = "pytest" test-cov = "coverage run -pm pytest" -cov-report = ["- coverage combine", "coverage report --show-missing"] +cov-report = [ + "- coverage combine", + "coverage xml", + "coverage report --show-missing", +] cov = ["test-cov", "cov-report"] cov-all = ["hatch run testall:test-cov", "cov-report"]