Skip to content

test: update all test dependencies #6222

test: update all test dependencies

test: update all test dependencies #6222

Workflow file for this run

name: CI
on:
pull_request:
types: [opened, synchronize, reopened]
push:
branches: [main]
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
permissions: {}
jobs:
quality:
runs-on: ubuntu-24.04
steps:
- name: Check out
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Install uv
uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
with:
version: '0.11.7'
enable-cache: true
cache-dependency-glob: 'uv.lock'
- name: Install Python
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
python-version: '3.14'
- name: Install Python dependencies
# We want to install all groups here to make sure that deptry has access to all dependencies for the inspection,
# even development ones.
run: uv sync --frozen
- name: Setup Rust toolchain
run: rustup component add clippy rustfmt
- uses: j178/prek-action@cbc2f23eb5539cf20d82d1aabd0d0ecbcc56f4e3 # v2.0.2
with:
# We skip mypy hook because it runs in "tests" job.
extra-args: '--all-files --skip mypy'
- name: Inspect dependencies with deptry
run: uv run deptry python
tests:
strategy:
matrix:
os:
- name: linux
image: ubuntu-24.04
- name: macos
image: macos-26
- name: windows
image: windows-2025
python-version:
- '3.10'
- '3.11'
- '3.12'
- '3.13'
- '3.14'
- '3.14t'
- 'pypy3.11'
fail-fast: false
runs-on: ${{ matrix.os.image }}
name: ${{ matrix.os.name }} (${{ matrix.python-version }})
environment:
name: tests
deployment: false
steps:
- name: Check out
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Install uv
uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
with:
version: '0.11.7'
enable-cache: true
cache-dependency-glob: 'uv.lock'
cache-suffix: ${{ matrix.python-version }}
- name: Install Python
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
python-version: ${{ matrix.python-version }}
- name: Install Python dependencies
run: uv sync --frozen --no-default-groups --group test --group typing
- name: Check typing
run: uv run --no-default-groups mypy
if: ${{ matrix.os.name == 'linux' && !startsWith(matrix.python-version, 'pypy') }}
- name: Run unit tests
run: uv run --no-default-groups pytest tests/unit --cov --cov-config=pyproject.toml --cov-report=xml
- name: Run functional tests
run: uv run --no-default-groups pytest tests/functional -n auto --dist loadgroup
env:
PYTHONIOENCODING: 'utf-8'
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@57e3a136b779b570ffcdbf80b3bdc90e7fab3de2 # v6.0.0
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
if: ${{ matrix.os.name == 'linux' && matrix.python-version == '3.14' }}
check-docs:
runs-on: ubuntu-24.04
steps:
- name: Check out
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Install uv
uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
with:
version: '0.11.7'
enable-cache: true
cache-dependency-glob: 'uv.lock'
- name: Install Python
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
python-version: '3.14'
- name: Check if documentation can be built
run: uv run --only-group docs zensical build --strict