Skip to content

fix: comprehensive Python 3.9 compatibility fixes #4

fix: comprehensive Python 3.9 compatibility fixes

fix: comprehensive Python 3.9 compatibility fixes #4

Workflow file for this run

name: CI
on:
push:
branches: [main, develop]
pull_request:
branches: [main, develop]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
enable-cache: true
cache-dependency-glob: "uv.lock"
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install dependencies
run: uv sync --all-extras --dev
- name: Run Ruff linter
run: uv run ruff check src/ tests/
- name: Run Ruff formatter
run: uv run ruff format --check src/ tests/
- name: Run mypy
run: uv run mypy src/
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
enable-cache: true
cache-dependency-glob: "uv.lock"
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
uv python pin ${{ matrix.python-version }}
uv sync --all-extras --dev
- name: Run tests with coverage
run: uv run pytest --cov-fail-under=0
- name: Upload coverage reports
if: matrix.python-version == '3.12'
uses: codecov/codecov-action@v5
with:
file: ./coverage.xml
fail_ci_if_error: false