ci: use uv

This commit is contained in:
Misty De Méo 2025-07-10 09:29:05 -07:00 committed by Misty De Méo
parent 7b691fe397
commit aea4286bd1
2 changed files with 10 additions and 7 deletions

View file

@ -1,5 +1,9 @@
name: Test setup
inputs:
python-version:
required: true
runs:
using: composite
steps:
@ -21,7 +25,5 @@ runs:
- name: Install pip dependencies
run: |
pip install .[rethinkdb,warcprox,yt-dlp]
# setuptools required by rethinkdb==2.4.9
pip install pytest setuptools
uv sync --python ${{ inputs.python-version }} --extra rethinkdb --extra warcprox --extra yt-dlp
shell: bash

View file

@ -20,12 +20,13 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- name: Install uv
uses: astral-sh/setup-uv@v6
- uses: ./.github/workflows/setup
with:
python-version: ${{ matrix.version }}
- uses: ./.github/workflows/setup
- name: Run tests
run: |
py.test --tb=native --verbose tests/test_cli.py tests/test_units.py
uv run py.test --tb=native --verbose tests/test_cli.py tests/test_units.py