GitHub Actions: Test on Python 3.14 #2
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Shared Checks | ||
on: | ||
workflow_call: | ||
permissions: | ||
contents: read | ||
env: | ||
COLUMNS: 150 | ||
jobs: | ||
pre-commit: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v5 | ||
- uses: astral-sh/setup-uv@v6 | ||
with: | ||
enable-cache: true | ||
version: 0.7.2 | ||
- name: Install dependencies | ||
run: uv sync --frozen --all-extras --python 3.10 | ||
- uses: pre-commit/[email protected] | ||
with: | ||
extra_args: --all-files --verbose | ||
env: | ||
SKIP: no-commit-to-branch | ||
test: | ||
runs-on: ${{ matrix.os }} | ||
timeout-minutes: 10 | ||
continue-on-error: true | ||
strategy: | ||
matrix: | ||
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"] | ||
dep-resolution: ["lowest-direct", "highest"] | ||
os: [ubuntu-latest, windows-latest] | ||
steps: | ||
- uses: actions/checkout@v5 | ||
- name: Install uv | ||
uses: astral-sh/setup-uv@v6 | ||
with: | ||
enable-cache: true | ||
- if: matrix.python-version == "3.14" | ||
run: uv add --frozen pillow==11.3 | ||
- name: Install the project | ||
run: uv sync --frozen --all-extras --python ${{ matrix.python-version }} --resolution ${{ matrix.dep-resolution }} | ||
- name: Run pytest | ||
run: uv run --frozen --no-sync pytest | ||
readme-snippets: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v5 | ||
- uses: astral-sh/setup-uv@v6 | ||
with: | ||
enable-cache: true | ||
- name: Install dependencies | ||
run: uv sync --frozen --all-extras --python 3.10 | ||
- name: Check README snippets are up to date | ||
run: uv run --frozen scripts/update_readme_snippets.py --check |