Skip to content

Move to uv

Move to uv #1409

Workflow file for this run

name: Test
on:
push:
branches:
- main
pull_request:
jobs:
test:
runs-on: ubuntu-22.04
strategy:
matrix:
python-version:
- '3.10'
- '3.11'
- '3.12'
- '3.13'
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
with:
# Install a specific version of uv.
version: "0.11.24"
python-version: ${{ matrix.python-version }}
- name: Install pandoc
uses: pandoc/actions/setup@v1
with:
version: 3.6.4
- name: Install the project
# TODO: Add "--locked": Was failing with:
# > The lockfile at `uv.lock` needs to be updated, but `--locked` was provided.
# > To update the lockfile, run `uv lock`.
# Running "uv lock" produces no changes.
run: uv sync --all-extras --dev
- name: Install pre-commit
run: uv run pre-commit install
- name: Install browsers
# Install just one browser instead of the default three.
# https://playwright.dev/python/docs/browsers#managing-browser-binaries
run: uv run playwright install chromium
- name: Test
run: uv run scripts/ci.sh
- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: playwright-traces
path: test-results/