From 7cad063a645fc461d084c259fbcd510f70c3b79f Mon Sep 17 00:00:00 2001 From: Ian Too Date: Sat, 14 Nov 2026 16:23:39 -0800 Subject: [PATCH] ci: coverage floor, ruff on evals, informational mypy and Python 3.15 jobs Refs #90 Co-Authored-By: Claude Sonnet 5.5 --- .github/workflows/test.yml | 22 +++++++++++++++++++++- pyproject.toml | 5 +++++ 2 files changed, 26 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9a11955..a8dccd2 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -31,7 +31,13 @@ jobs: with: python-version: '3.11' - run: uv sync --frozen --extra dev - - run: uv run ruff check src tests scripts + - run: uv run ruff check src tests scripts evals + # Type checking is reported but does not fail the build yet: there are + # hundreds of existing findings being fixed module by module (#91). + # Once that is done, remove continue-on-error to make it a gate. + - name: Type check (informational) + continue-on-error: true + run: uv run mypy src test: name: test (${{ matrix.os }}, py${{ matrix.python }}) @@ -50,6 +56,20 @@ jobs: # Live-network tests are marked `integration`; CI stays offline-safe. - run: uv run pytest -m "not integration" --cov-report= + # Newest Python, one OS. Informational: a failure here is an early warning + # for the next supported version, not a reason to block a change. + test-next-python: + name: test (ubuntu-latest, py3.15, informational) + runs-on: ubuntu-latest + continue-on-error: true + steps: + - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0 + - uses: astral-sh/setup-uv@d4b2f3b6ecc6e67c4457f6d3e41ec42d3d0fcb86 # v5.4.2 + with: + python-version: '3.15' + - run: uv sync --frozen --extra dev + - run: uv run pytest -m "not integration" --cov-report= + package: # Build the wheel and install it the way users do, then drive the installed # `dataforge` as a black box: everyday commands, MCP, and two offline diff --git a/pyproject.toml b/pyproject.toml index d9e51c3..0cf0039 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -84,6 +84,11 @@ markers = [ "integration: marks tests that require live network access (deselect with -m 'not integration')", ] +[tool.coverage.report] +# A floor, not a goal: total coverage was 66% when this was set (#90). Raise it +# as tests are added (#92); never lower it to make a change pass. +fail_under = 64 + [tool.mypy] python_version = "3.11" strict = true