SmaugC137's picture
chore: add ruff (lint config, CI step, fix findings)
9d4bfda
Raw
History Blame Contribute Delete
470 Bytes
name: CI
on:
push:
branches: [main]
pull_request:
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v5
- name: Lint
run: uv run --python ${{ matrix.python-version }} ruff check .
- name: Run tests
run: uv run --python ${{ matrix.python-version }} --extra api pytest -q