31 lines
632 B
YAML
31 lines
632 B
YAML
name: Python CI
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: '3.11'
|
|
|
|
- name: Install uv
|
|
run: pip install uv
|
|
|
|
- name: Install dependencies
|
|
run: uv pip install --system -e ".[dev]" || uv pip install --system -e .
|
|
|
|
- name: Lint with ruff
|
|
run: ruff check . || true
|
|
|
|
- name: Type check
|
|
run: mypy . --ignore-missing-imports || true
|