Skip to content

Merge pull request #435 from neutrinoceros/renovate/lock-file-mainten… #1203

Merge pull request #435 from neutrinoceros/renovate/lock-file-mainten…

Merge pull request #435 from neutrinoceros/renovate/lock-file-mainten… #1203

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
paths-ignore:
- .pre-commit-config.yaml
workflow_dispatch:
jobs:
tests:
name: Python ${{ matrix.python-version }} on ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
python-version:
- '3.10'
- '3.11'
- '3.12'
- '3.13'
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: astral-sh/setup-uv@4db96194c378173c656ce18a155ffc14a9fc4355 # v5.2.2
with:
python-version: ${{ matrix.python-version }}
- name: Run tests
run: uv run --frozen --no-editable --group test pytest --color=yes
future:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version:
- '3.14'
- 3.13t
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: astral-sh/setup-uv@4db96194c378173c656ce18a155ffc14a9fc4355 # v5.2.2
with:
python-version: ${{ matrix.python-version }}
- name: Configure uv
run: |
echo "UV_PYTHON_PREFERENCE=only-system" >> $GITHUB_ENV
echo "UV_PYTHON=${{ matrix.python-version }}" >> $GITHUB_ENV
echo "UV_PRERELEASE=allow" >> $GITHUB_ENV
- run: uv lock --upgrade
- name: Run tests
run: uv run --frozen --no-editable --group test pytest --color=yes
tests_minimal_env:
name: Test minimal requirements
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: astral-sh/setup-uv@4db96194c378173c656ce18a155ffc14a9fc4355 # v5.2.2
with:
python-version: 3.10.0
- name: Run tests
run: uv run --resolution=lowest-direct --no-editable --group test pytest --color=yes
type-check:
strategy:
matrix:
python-version:
- '3.10'
- '3.13'
typechecker:
- mypy
- pyright
runs-on: ubuntu-latest
name: type check
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ matrix.python-version }}-${{ matrix.typechecker }}-typecheck
cancel-in-progress: true
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: astral-sh/setup-uv@4db96194c378173c656ce18a155ffc14a9fc4355 # v5.2.2
- name: Build
run: uv sync -p ${{ matrix.python-version }} --group typecheck --no-editable
- name: Typecheck
run: uv run ${{ matrix.typechecker }} src
docs:
runs-on: ubuntu-latest
name: docs
concurrency:
group: ${{ github.ref }}-docs
cancel-in-progress: true
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: astral-sh/setup-uv@4db96194c378173c656ce18a155ffc14a9fc4355 # v5.2.2
- name: Setup env
run: uv sync --frozen --group docs
- name: Build
run: uv run mkdocs build
- name: Upload artifacts
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
with:
name: site
path: site