Skip to content

feat: FT210 contextlib — contextmanager / suppress / ExitStack / nullcontext #736

feat: FT210 contextlib — contextmanager / suppress / ExitStack / nullcontext

feat: FT210 contextlib — contextmanager / suppress / ExitStack / nullcontext #736

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
check:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.12", "3.14"]
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
version: "latest"
enable-cache: true
- name: Set up Python ${{ matrix.python-version }}
run: uv python install ${{ matrix.python-version }}
- name: Install dependencies
run: uv sync --all-extras
- name: pytest (with coverage)
run: uv run pytest
- name: coverage gate — domain/use_case layers (90%)
run: |
uv run coverage report \
--include="src/example/*/use_case.py,src/example/*/async_use_case.py,src/example/*/entity.py" \
--fail-under=90
- name: mypy
run: uv run mypy src/
- name: ruff check
run: uv run ruff check src/ tests/
- name: ruff format
run: uv run ruff format --check src/ tests/
- name: pip-audit
# PYSEC-2025-183: pyjwt weak-key-length — disputed by supplier, no fix version available.
# Transitive via mcp>=1.0. Re-evaluate when pyjwt releases a fix. (#280)
run: uv run pip-audit --ignore-vuln PYSEC-2025-183