Skip to content

[pre-commit.ci] pre-commit autoupdate #452

[pre-commit.ci] pre-commit autoupdate

[pre-commit.ci] pre-commit autoupdate #452

Workflow file for this run

name: Tests
on:
push:
paths: ["**/*.py", ".github/workflows/test.yml"]
branches: [main]
pull_request:
paths: ["**/*.py", ".github/workflows/test.yml"]
branches: [main]
release:
types: [published]
workflow_dispatch:
workflow_call:
concurrency:
# Cancel only on same PR number
group: ${{ github.workflow }}-pr-${{ github.event.pull_request.number }}
cancel-in-progress: true
jobs:
tests:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
version:
- { python: "3.10", resolution: highest }
- { python: "3.12", resolution: lowest-direct }
runs-on: ${{ matrix.os }}
steps:
- name: Check out repo
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.version.python }}
- name: Set up uv
uses: astral-sh/setup-uv@v2
- name: Install dependencies
run: |
uv pip install torch --index-url https://download.pytorch.org/whl/cpu --system
uv pip install .[test] --system
- name: Run Tests
run: pytest --capture=no --cov .