Files
Prakash 10db2979e5 ci(test): expand test matrix to Python 3.11, 3.12, 3.13
Pin lint job to 3.12 and run tests across all supported Python
versions to catch compatibility issues early.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-11 12:46:13 +05:30

65 lines
1.5 KiB
YAML

# CI — runs tests and lint on every PR targeting dev.
# Created: 2026-02-26
# Updated: 2026-03-11 — Added Python version matrix (3.11, 3.12, 3.13) for
# the test job. Lint job pinned to 3.12 only.
name: CI
on:
pull_request:
branches: [dev, main]
push:
branches: [dev]
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v5
with:
enable-cache: true
- name: Set Python version
run: uv python install 3.12
- name: Install dependencies
run: uv sync --dev
- name: Ruff check
run: uv run ruff check .
- name: Ruff format check
run: uv run ruff format --check .
test:
name: Test (Python ${{ matrix.python-version }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v5
with:
enable-cache: true
- name: Set Python version
run: uv python install ${{ matrix.python-version }}
- name: Install dependencies
run: uv sync --dev
- name: Run tests
run: uv run pytest tests/ --ignore=tests/e2e --ignore=tests/test_frontend_syntax.py -x -q --tb=short
env:
POCKETPAW_LLM_PROVIDER: "ollama"
POCKETPAW_OLLAMA_HOST: "http://localhost:11434"