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
25 changes: 25 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,31 @@ jobs:
uv run ruff check src/ tests/ scripts/
uv run ruff format --check src/ tests/ scripts/

coverage:
name: Coverage
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false

- name: Install Python
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
with:
python-version: ${{ env.PYTHON_VERSION }}

- name: Install uv
uses: astral-sh/setup-uv@bec219d24cd3e171d82865faccec33120bb574f4 # v10.1.0
with:
version: ${{ env.UV_VERSION }}
enable-cache: true

- name: Install the complete locked test environment
run: uv sync --locked --all-extras --all-groups

- name: Enforce package coverage
run: uv run pytest tests/ -q -ra --cov=ml4t.data --cov-report=term-missing

dependency-audit:
name: Dependency Audit
runs-on: ubuntu-latest
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ jobs:
echo "ML4T_DOCS_VERSION=$(uv run python -c 'from ml4t.data import __version__; print(__version__)')" >> "$GITHUB_ENV"
echo "ML4T_DOCS_COMMIT=${GITHUB_SHA}" >> "$GITHUB_ENV"
- name: Build documentation strictly
run: uv run mkdocs build --strict
run: |
uv run python scripts/verify_readme_links.py
uv run mkdocs build --strict
- name: Verify rendered identity
run: >-
uv run python scripts/verify_documentation_identity.py
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ jobs:
uv run ruff check src/ tests/ scripts/
uv run ruff format --check src/ tests/ scripts/
uv run ty check
uv run pytest tests/ -q -ra
uv run pytest tests/ -q -ra --cov=ml4t.data --cov-report=term-missing
uv run pytest tests/ -q -ra -W error::ResourceWarning
- name: Audit locked dependencies
run: |
Expand All @@ -113,6 +113,7 @@ jobs:
ML4T_DOCS_COMMIT: ${{ needs.preflight.outputs.commit }}
ML4T_DOCS_VERSION: ${{ needs.preflight.outputs.version }}
run: |
uv run python scripts/verify_readme_links.py
uv run mkdocs build --strict
uv run python scripts/verify_documentation_identity.py \
--site site \
Expand Down
2 changes: 1 addition & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ Run focused tests while editing, then run the repository gates:
uv run ruff check src tests scripts
uv run ruff format --check src tests scripts
uv run ty check
uv run pytest tests -q -ra
uv run pytest tests -q -ra --cov=ml4t.data --cov-report=term-missing
uv run pytest tests -q -ra -W error::ResourceWarning
uv run mkdocs build --strict
uv build
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ uv run pre-commit install
uv run ruff check src/ tests/
uv run ruff format --check src/ tests/
uv run ty check
uv run pytest tests/ -q
uv run pytest tests/ -q -ra --cov=ml4t.data --cov-report=term-missing
uv run mkdocs build --strict
uv build
```
Expand Down
285 changes: 0 additions & 285 deletions docs/ASYNC_STORAGE.md

This file was deleted.

Loading
Loading