Skip to content

Bump the python group with 3 updates #233

Bump the python group with 3 updates

Bump the python group with 3 updates #233

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
permissions:
contents: read
jobs:
prek:
runs-on: ubuntu-latest
name: Prek Checks
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
with:
persist-credentials: false
- uses: j178/prek-action@cbc2f23eb5539cf20d82d1aabd0d0ecbcc56f4e3 # v2.0.2
lint:
runs-on: ubuntu-latest
name: Lint
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
with:
persist-credentials: false
- uses: astral-sh/setup-uv@cec208311dfd045dd5311c1add060b2062131d57 # v8.0.0
with:
python-version: "3.10"
- name: Install dependencies
run: uv sync --group lint
# Update output format to enable automatic inline annotations.
- name: Check linting
run: uv run ruff check --output-format=github .
- name: Check formatting
run: uv run ruff format --check --output-format=github --preview .
type-check:
runs-on: ubuntu-latest
name: Type Check
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
with:
persist-credentials: false
- uses: astral-sh/setup-uv@cec208311dfd045dd5311c1add060b2062131d57 # v8.0.0
with:
python-version: "3.10"
- name: Install dependencies
run: uv sync --group typecheck
- name: Run type checking
run: uv run pyright
sync-check:
runs-on: ubuntu-latest
name: Sync Check
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
with:
persist-credentials: false
- uses: astral-sh/setup-uv@cec208311dfd045dd5311c1add060b2062131d57 # v8.0.0
with:
python-version: "3.10"
- name: Install dependencies
run: uv sync --group codegen
- name: Check sync code is up to date
run: uv run python scripts/run_unasync.py --check
- name: Check for Sync-prefixed classes
run: uv run python scripts/check_no_sync_prefix.py
test:
runs-on: ubuntu-latest
name: Test (Python ${{ matrix.python-version }})
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
with:
persist-credentials: false
- uses: astral-sh/setup-uv@cec208311dfd045dd5311c1add060b2062131d57 # v8.0.0
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: uv sync --group test
- name: Run tests
run: uv run pytest