diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index 281d85f..6920cd9 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -37,3 +37,20 @@ jobs: run: pip install '.[dev]' - name: Test with Nox run: nox -s mypy-3.12 + coverage: + runs-on: ubuntu-22.04 + steps: + - uses: actions/checkout@v4 + - name: Set up Python 3.12 + uses: actions/setup-python@v5 + with: + python-version: 3.12 + cache: pip + - name: Install Nox + run: pip install '.[dev]' + - name: Test with Nox + run: nox -s tests-3.12 + - name: Upload results to Codecov + uses: codecov/codecov-action@v4 + with: + token: ${{ secrets.CODECOV_TOKEN }} diff --git a/noxfile.py b/noxfile.py index 9e91f54..7beb4ff 100644 --- a/noxfile.py +++ b/noxfile.py @@ -32,4 +32,4 @@ def mypy(session) -> None: def tests(session) -> None: """Run the test suite.""" session.install(".[dev]") - session.run("coverage", "run", "--parallel", "-m", "pytest", *session.posargs) + session.run("coverage", "run", "--source=src", "--parallel", "-m", "pytest", *session.posargs)