Skip to content

feat: modernize to uv + pyproject.toml (PEP 621/735) #485

feat: modernize to uv + pyproject.toml (PEP 621/735)

feat: modernize to uv + pyproject.toml (PEP 621/735) #485

Workflow file for this run

name: Run all tests & checks
on:
push:
branches: [ main ]
pull_request:
workflow_call:
jobs:
run_tests:
name: ${{ matrix.toxenv }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.12"]
toxenv:
- py312
- quality
- mypy
- docs
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Install uv
uses: astral-sh/setup-uv@11f9893b081a58869d3b5fccaea48c9e9e46f990 # v8.3.2
with:
enable-cache: true
python-version: "${{ matrix.python-version }}"
- name: Install CI dependencies
run: uv sync --group ci
- name: Run tox
run: uv run tox -e ${{ matrix.toxenv }}
- name: Upload coverage to Codecov
if: matrix.toxenv == 'py312'
uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v6.0.2
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: unittests
fail_ci_if_error: true