granian/.github/workflows/test.yml
dependabot[bot] d30662eb49
Bump actions/checkout from 4 to 5 (#675)
Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 5.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v4...v5)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-09-02 11:24:23 +02:00

120 lines
2.6 KiB
YAML

name: test
on:
pull_request:
types: [opened, synchronize]
branches:
- master
push:
branches:
- master
jobs:
linux:
name: linux (${{ matrix.python-version }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
allocator: [jemalloc]
python-version:
- '3.9'
- '3.10'
- '3.11'
- '3.12'
- '3.13'
- '3.14'
- pypy3.11
include:
- python-version: 3.13t
allocator: mimalloc
- python-version: 3.14t
allocator: mimalloc
env:
UV_PYTHON: ${{ matrix.python-version }}
steps:
- uses: actions/checkout@v5
- uses: astral-sh/setup-uv@v6
with:
enable-cache: false
- name: Install
run: |
uv python install ${{ env.UV_PYTHON }}
uv venv .venv
uv sync --group all
uv run --no-sync maturin develop --uv --features ${{ matrix.allocator }}
- name: Test
run: |
source .venv/bin/activate
make test
macos:
name: macos (${{ matrix.python-version }})
runs-on: macos-latest
strategy:
fail-fast: false
matrix:
allocator: [jemalloc]
python-version:
- '3.9'
- '3.10'
- '3.11'
- '3.12'
- '3.13'
- '3.14'
include:
- python-version: 3.13t
allocator: mimalloc
- python-version: 3.14t
allocator: mimalloc
env:
UV_PYTHON: ${{ matrix.python-version }}
steps:
- uses: actions/checkout@v5
- uses: astral-sh/setup-uv@v6
with:
enable-cache: false
- name: Install
run: |
uv python install ${{ env.UV_PYTHON }}
uv venv .venv
uv sync --group all
uv run --no-sync maturin develop --uv --features ${{ matrix.allocator }}
- name: Test
run: |
source .venv/bin/activate
make test
windows:
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
python-version:
- '3.9'
- '3.10'
- '3.11'
- '3.12'
- '3.13'
- '3.13t'
- '3.14'
- '3.14t'
env:
UV_PYTHON: ${{ matrix.python-version }}
steps:
- uses: actions/checkout@v5
- uses: astral-sh/setup-uv@v6
with:
enable-cache: false
- name: Install
run: |
uv python install ${{ env.UV_PYTHON }}
uv venv .venv
uv sync --group all
uv run --no-sync maturin develop --uv --features mimalloc
- name: Test
run: |
uv run --no-sync pytest -v tests