Skip to content

chore(ci): use astral-sh/setup-uv action #29

chore(ci): use astral-sh/setup-uv action

chore(ci): use astral-sh/setup-uv action #29

Workflow file for this run

name: Test Python package
on:
push:
branches:
- master
pull_request:
env:
UV_SYSTEM_PYTHON: 1
# Configure a constant location for the uv cache
UV_CACHE_DIR: /tmp/.uv-cache
jobs:
build:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read # for private repos
steps:
- uses: actions/checkout@v4
- name: Set up uv
uses: astral-sh/setup-uv@v3
with:
enable-cache: true
- name: Set up Python
run: uv python install 3.12
- name: Install dependencies
run: uv pip install nox[uv]
- name: Test with pytest
run: nox -db uv
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4
with:
use_oidc: true