Skip to content

Run tests with uv

Run tests with uv #804

Workflow file for this run

name: Test
on:
push:
branches:
- main
pull_request:
paths-ignore:
- 'docs/**'
- 'examples/**'
workflow_call:
jobs:
style:
name: Check style
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: astral-sh/ruff-action@v3
- uses: astral-sh/ruff-action@v3
with:
args: "format --diff"
test:
needs: style
strategy:
matrix:
os: [ubuntu-24.04, windows-2022, macos-13, macos-15]
python-version: ['3.10', '3.11', '3.12', '3.13']
name: Run tests (Python ${{ matrix.python-version }} on ${{ matrix.os }})
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v5
- name: Set up Python ${{ matrix.python-version }}
run: uv python install ${{ matrix.python-version }}
- name: Run tests
run: uv run --extra cibw pytest --cov tests