Skip to content

use uv

use uv #52

Workflow file for this run

name: Tests
on:
push:
pull_request:
types: [ opened, synchronize ]
jobs:
pytest:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: [ '3.10', '3.11', '3.12', '3.13' ]
name: pytest ${{ matrix.python-version }}
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v4
with:
python-version: ${{ matrix.python-version }}
- name: Run tests
shell: bash
run: |
uv run --frozen pytest
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v4
- name: Install deps
shell: bash
run: |
uv sync --frozen --only-dev
- uses: pre-commit/action@v3.0.1