Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 21 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }})
Expand All @@ -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
Expand Down
5 changes: 5 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading