Add uv support #839
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: New commit pushed and receive pull request | |
on: | |
pull_request: | |
push: | |
workflow_dispatch: | |
inputs: | |
git_rev: | |
description: 'git revision' | |
required: false | |
default: '' | |
jobs: | |
check: | |
strategy: | |
matrix: | |
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] | |
platform: [ubuntu-latest, macos-latest] | |
runs-on: ${{ matrix.platform }} | |
steps: | |
- name: Check out | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
ref: "${{ github.event.inputs.git_rev }}" | |
- name: Install the latest version of uv | |
uses: astral-sh/setup-uv@v3 | |
with: | |
enable-cache: true | |
version: "latest" | |
- name: Set up Python ${{ matrix.python-version }} | |
run: uv python install ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
uv --version | |
uv tool install invoke | |
uv sync --no-group doc | |
- name: Run pre-commit hooks | |
run: | | |
SKIP='no-commit-to-branch,commitizen-branch' inv run-pre-commit-hooks | |
- name: Run slow tests | |
run: | | |
inv test --run-slow-tests |