Switch to uv for building and packaging #330
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: test suite | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
jobs: | |
tox: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: | |
- "3.9" | |
- "3.10" | |
- "3.11" | |
- "3.12" | |
- "3.13" | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: astral-sh/setup-uv@v5 | |
with: | |
cache-dependency-glob: "pyproject.toml" | |
cache-suffix: ${{ matrix.python-version }} | |
- name: Install Python | |
run: uv python install ${{ matrix.python-version }} | |
env: | |
UV_PYTHON_PREFERENCE: only-managed | |
- run: uv pip install codecov | |
- run: uvx tox | |
- run: uvx codecov | |
check: | |
runs-on: ubuntu-latest | |
if: always() | |
needs: | |
- tox | |
steps: | |
- name: Decide whether the needed jobs succeeded or failed | |
uses: re-actors/alls-green@release/v1 | |
with: | |
jobs: ${{ toJSON(needs) }} |