Skip to content

ci: setup attempt #12 #12

ci: setup attempt #12

ci: setup attempt #12 #12

Workflow file for this run

---
name: CI
on:
push:
branches: [uv-migration]
pull_request:
workflow_dispatch:
env:
FORCE_COLOR: "1" # Make tools pretty.
PIP_DISABLE_PIP_VERSION_CHECK: "1"
PIP_NO_PYTHON_VERSION_WARNING: "1"
permissions: {}
jobs:
lint:
name: Linters
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v4
with:
python-version: 3.13
- name: Install pre-commit
run: uv tool install pre-commit-uv
- name: Run pre-commit
run: uv run pre-commit run --all-files --show-diff-on-failure
tests:
name: Tests with ${{ matrix.env }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
env:
- "3.10"
- "3.11"
- "3.12"
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v4
with:
python-version: ${{ matrix.env }}
enable-cache: true
cache-dependency-glob: "**/pyproject.toml"
- name: Install tox
run: uv tool install tox --with tox-uv
- name: Setup tests
run: tox run -vv --notest --skip-missing-interpreters false -e ${{ matrix.env }}
- name: Run tests
run: tox run --skip-pkg-install -e ${{ matrix.env }}