Skip to content

build: switch to uv #209

build: switch to uv

build: switch to uv #209

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
workflow_dispatch:
jobs:
lint-and-test:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest, ubuntu-24.04-arm]
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: astral-sh/setup-uv@v6
- run: uv run --python ${{ matrix.python-version }} task lint
- run: uv run --python ${{ matrix.python-version }} task typecheck
- run: uv run --python ${{ matrix.python-version }} task test
- run: uv build
- uses: actions/upload-artifact@v4
with:
name: dist-${{ matrix.os }}-${{ matrix.python-version }}
path: |
dist/*.tar.gz
dist/*.whl
coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v6
- run: uv run task coverage