Skip to content

Use uv to build

Use uv to build #18

Workflow file for this run

name: CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-24.04
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Fetch full history for version detection from git tags
- name: Install uv
uses: astral-sh/setup-uv@v3
with:
version: "latest"
- name: Set up Python ${{ matrix.python-version }}
run: uv python install ${{ matrix.python-version }}
- name: Install dependencies
run: |
uv sync --dev
- name: Run tests
run: |
uv run pytest
- name: Build package
run: |
uv build
- name: Check package
run: |
uv run python -m twine check dist/*
if: matrix.python-version == '3.11'