Skip to content

Improve CLAUDE Code workflow #1102

Improve CLAUDE Code workflow

Improve CLAUDE Code workflow #1102

Workflow file for this run

name: Tests
on:
push:
branches: [main]
paths-ignore:
- '**.md'
- 'Makefile'
- 'LICENSE'
- 'scripts/benchmarks/**'
pull_request:
branches: [main]
paths-ignore:
- '**.md'
- 'Makefile'
- 'LICENSE'
- 'scripts/benchmarks/**'
env:
UV_FROZEN: "1"
jobs:
lint-format:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup uv
uses: astral-sh/setup-uv@v6
with:
enable-cache: true
version: "0.9.14"
- name: Run lint
run: uvx [email protected] check --diff
- name: Run format
run: uvx [email protected] format --diff
tests:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v4
- name: Setup uv
uses: astral-sh/setup-uv@v6
with:
python-version: ${{ matrix.python-version }}
enable-cache: true
version: "0.9.14"
- name: Test with python ${{ matrix.python-version }}
run: uv run pytest
pyright:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v4
- name: Setup uv
uses: astral-sh/setup-uv@v6
with:
python-version: ${{ matrix.python-version }}
enable-cache: true
version: "0.9.14"
- name: Test with python ${{ matrix.python-version }}
run: uv run pyright