Skip to content

fix: preserve benchmark agent failures #210

fix: preserve benchmark agent failures

fix: preserve benchmark agent failures #210

Workflow file for this run

name: Test
on:
pull_request:
branches:
- '**'
push:
branches:
- main
jobs:
test:
runs-on: ${{ matrix.os }}
env:
UV_NO_SOURCES: "1"
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
python-version: ['3.10', '3.11']
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v4
with:
version: "latest"
- name: Set up Python ${{ matrix.python-version }}
run: uv python install ${{ matrix.python-version }}
- name: Install dependencies
run: uv sync --all-extras
# Whole repository, not just openadapt_ml/. Every defect the ruff 0.16
# audit surfaced (an undefined name, two bare `except:`, four dead
# bindings, five shadowed imports) was in scripts/ or tests/, i.e.
# outside the old gate. Ruff runs in well under a second, so widening the
# path costs no measurable CI time.
- name: Run ruff linter (check)
run: uv run ruff check .
# Formatting stays scoped to openadapt_ml/. 37 files under scripts/,
# tests/ and examples/ have never been formatted; normalising them is a
# separate, purely cosmetic change and does not belong in this one.
- name: Run ruff formatter (check)
run: uv run ruff format --check openadapt_ml/
- name: Build and verify the public distribution boundary
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.10'
run: |
uv build
python scripts/check_source_boundary.py --require-dist
- name: Run pytest
run: uv run pytest tests/ -v --ignore=tests/integration