Skip to content

fix(ci): exclude gpu_real_data/benchmark/long/integration markers in … #675

fix(ci): exclude gpu_real_data/benchmark/long/integration markers in …

fix(ci): exclude gpu_real_data/benchmark/long/integration markers in … #675

Workflow file for this run

name: CI
on:
push:
branches: [ '**' ]
pull_request:
branches: [ '**' ]
jobs:
lint:
name: Lint with Ruff
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v4
with:
enable-cache: true
cache-dependency-glob: "uv.lock"
- name: Set up Python
run: uv python install 3.12
- name: Install dependencies
run: uv sync --extra dev
- name: Run Ruff linter
run: uv run ruff check --no-cache .
- name: Run Ruff formatter check
run: uv run ruff format --check .
typecheck:
name: Type Check with Pyright
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v4
with:
enable-cache: true
cache-dependency-glob: "uv.lock"
- name: Set up Python
run: uv python install 3.12
- name: Install dependencies
run: uv sync --extra dev
- name: Run Pyright type checker
run: uv run pyright grail
test:
name: Run Tests
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.12"]
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v4
with:
enable-cache: true
cache-dependency-glob: "uv.lock"
- name: Set up Python ${{ matrix.python-version }}
run: uv python install ${{ matrix.python-version }}
- name: Install dependencies
run: uv sync --extra dev
- name: Run tests (parallel)
# Marker filter must repeat the addopts default exclusions because a
# command-line -m REPLACES the addopts -m (pytest does not compose them).
# Excluded: serial (run separately below), gpu_real_data / benchmark
# (need a real GPU), long (10-15 min, opt-in), integration (slow).
run: uv run pytest tests/ -n auto --dist loadfile -m "not serial and not gpu_real_data and not benchmark and not long and not integration" -v --tb=short
- name: Run serial tests
run: uv run pytest tests/ -m "serial and not gpu_real_data and not benchmark and not long and not integration" -v --tb=short
env:
PYTHONPATH: ${{ github.workspace }}