Skip to content

Switch project to uv #21

Switch project to uv

Switch project to uv #21

Workflow file for this run

name: test
on:
pull_request:
push:
branches:
- main
jobs:
pre-commit:
runs-on: ubuntu-22.04
steps:
- name: Clone and checkout branch
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: "pip"
- name: Run pre-commit hooks
uses: pre-commit/[email protected]
build:
needs: pre-commit
runs-on: ubuntu-22.04
steps:
- name: Clone full tree, and checkout branch
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: "pip"
- name: Setup uv
uses: astral-sh/setup-uv@v6
with:
version: "0.8.3"
- name: Build source dist and wheels
run: uv build
- name: Upload source dist and wheels to artifacts
uses: actions/upload-artifact@v4
with:
name: dist
path: dist/
retention-days: 5