Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 20 additions & 17 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,50 +1,53 @@
name: CI
on:
push:
branches: [main]
branches: [ main ]
pull_request:
types: [opened, synchronize, reopened, ready_for_review, labeled, unlabeled]
workflow_dispatch:

permissions:
contents: read

concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true

permissions:
contents: read
jobs:
linux:
name: python-${{ matrix.python-version }} on ubuntu-latest
name: python-${{ matrix.py }} on ubuntu-latest
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.11","3.12"]
py: ["3.11","3.12"]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with: { python-version: ${{ matrix.py }} }
- uses: actions/cache@v4
with:
python-version: ${{ matrix.python-version }}
path: ~/.cache/pip
key: pip-${{ runner.os }}-${{ matrix.py }}-${{ hashFiles('pyproject.toml') }}
- run: python -m pip install -U pip
- run: pip install ruff black pytest mypy
- run: python -m pip install .
- run: python -m pip install ruff==0.6.9 black==24.10.0 pytest==8.4.2 mypy==1.17.1
- run: ruff check .
- run: black --check .
- run: ruff format --check .
- run: pytest -q
- run: mypy .

windows_optional:
name: python-3.12 on windows-latest
windows:
name: python-${{ matrix.py }} on windows-latest
runs-on: windows-latest
continue-on-error: true
strategy:
fail-fast: false
matrix:
py: ["3.11","3.12"]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
with: { python-version: ${{ matrix.py }} }
- run: python -m pip install -U pip
- run: pip install ruff black pytest mypy
- run: python -m pip install .
- run: python -m pip install ruff==0.6.9 black==24.10.0 pytest==8.4.2 mypy==1.17.1
- run: ruff check .
- run: black --check .
- run: ruff format --check .
Expand Down