Skip to content

fix: round-5 bug-hunt sweep (cost gates, MCP stability, frontend a11y) #152

fix: round-5 bug-hunt sweep (cost gates, MCP stability, frontend a11y)

fix: round-5 bug-hunt sweep (cost gates, MCP stability, frontend a11y) #152

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install ruff
run: pip install ruff==0.15.1
- name: Lint
run: ruff check deepr/
- name: Format check
run: ruff format --check deepr/
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Cache pip
uses: actions/cache@v4
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ matrix.python-version }}-${{ hashFiles('pyproject.toml') }}
- name: Install dependencies
run: pip install -e ".[dev,full]"
- name: Unit tests with coverage
# Coverage threshold lives in pyproject.toml (currently 75%).
# Do NOT pass --cov-fail-under here — it would silently override
# the pyproject setting and allow coverage to drop without
# tripping CI (R4 audit caught this discrepancy).
run: python -m pytest tests/unit/ --ignore=tests/data -q --tb=short --cov=deepr --cov-report=term-missing