diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c1769bc47..2c6b949cc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -37,7 +37,7 @@ jobs: run: | # We run tests against "." and not the tests directory as we test the README # and documentation. - uv run --group=dev --python=${{ matrix.python-version }} pytest -s -vvv --cov-fail-under 100 --cov=src/ --cov=tests/ . + uv run --group=dev --python=${{ matrix.python-version }} pytest -s -vvv . --cov --cov-config=pyproject.toml completion-ci: needs: build diff --git a/pyproject.toml b/pyproject.toml index 3babf9251..0e9a995c7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -434,7 +434,9 @@ log_cli = true xfail_strict = true [tool.coverage] +run.source = [ "src/", "tests/" ] run.branch = true +report.fail_under = 100 report.exclude_also = [ "if TYPE_CHECKING:", ]