Skip to content

GitHub Actions: Test on Python 3.14 #2

GitHub Actions: Test on Python 3.14

GitHub Actions: Test on Python 3.14 #2

Workflow file for this run

name: Shared Checks

Check failure on line 1 in .github/workflows/shared.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/shared.yml

Invalid workflow file

(Line: 50, Col: 13): Unexpected symbol: '"3'. Located at position 26 within expression: matrix.python-version == "3.14"
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