Skip to content

[pre-commit.ci] pre-commit autoupdate #121

[pre-commit.ci] pre-commit autoupdate

[pre-commit.ci] pre-commit autoupdate #121

Workflow file for this run

name: Test Python package
on:
push:
branches:
- master
pull_request:
env:
UV_SYSTEM_PYTHON: 1
jobs:
build:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
steps:
- uses: actions/checkout@v4
- name: Set up uv
uses: astral-sh/setup-uv@v3
with:
enable-cache: true
cache-dependency-glob: |
**/requirements*.txt
**/pyproject.toml
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 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@v5
with:
use_oidc: ${{ !(github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork) }}