gowtham-sai-yadav's picture
ci: GitHub Actions workflow — pytest matrix (3.11/3.12) + ruff lint
3f60ff4
Raw
History Blame Contribute Delete
1.07 kB
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
name: pytest (Python ${{ matrix.python-version }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v3
with:
enable-cache: true
- name: Set up Python ${{ matrix.python-version }}
run: uv python install ${{ matrix.python-version }}
- name: Install base dependencies
run: uv sync --python ${{ matrix.python-version }}
- name: Run tests
run: uv run --python ${{ matrix.python-version }} pytest tests/ -v --tb=short
lint:
name: ruff
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v3
with:
enable-cache: true
- name: Lint with ruff (warn only)
run: uvx ruff check viveka/ tests/
continue-on-error: true