Skip to content

chore: move to uv

chore: move to uv #11

Workflow file for this run

name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
env:
UV_CACHE_DIR: /tmp/.uv-cache
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version:
- "3.9"
- "3.10"
- "3.11"
steps:
- uses: actions/checkout@v2
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
python-version: ${{ matrix.python-version }}
- name: Load cached venv
id: uv-cache
uses: actions/cache@v4
with:
path: /tmp/.uv-cache
key: venv-${{ runner.os }}-${{ matrix.python-version }}-${{ hashFiles('**/uv.lock') }}
- name: Install project
run: uv sync --locked --dev
- name: Test with pytest
run: uv run pytest
- name: Minimize uv cache
run: uv cache prune --ci