Skip to content

Bump the actions group with 2 updates #1

Bump the actions group with 2 updates

Bump the actions group with 2 updates #1

Workflow file for this run

name: CI
on:
pull_request:
push:
branches: [main]
workflow_dispatch:
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
lint:
name: Lint & typecheck
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-python@v7
with:
python-version: "3.11"
cache: pip
- run: pip install -e '.[dev]'
- run: ruff check .
- run: ruff format --check .
- run: mypy src generator tests
- run: pyright
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@v7
- uses: actions/setup-python@v7
with:
python-version: ${{ matrix.python-version }}
cache: pip
- run: pip install -e '.[dev]'
- run: pytest
- run: python examples/basic.py
- run: python examples/lookup.py
generate:
name: Verify generated files
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-python@v7
with:
python-version: "3.11"
cache: pip
- run: pip install -e '.[dev]'
- run: python generator/generate.py
- run: git diff --exit-code