Skip to content

Move project to uv backend (#7) #42

Move project to uv backend (#7)

Move project to uv backend (#7) #42

name: Python package Lint+Test
on:
push:
branches: [ "master", "dev" ]
pull_request:
branches: [ "master", "dev" ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: [ "3.9", "3.10", "3.11", "3.12" ]
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v2
with:
version: "0.4.15"
enable-cache: true
cache-dependency-glob: "uv.lock"
- name: Set up Python ${{ matrix.python-version }}
run: uv python install ${{ matrix.python-version }}
- name: Install the project
run: uv sync --extra dev --extra tests
- name: Minimize uv cache
run: uv cache prune --ci
- name: Lint
run: make lint
- name: Test with pytest
run: make test