mirror of
https://github.com/internetarchive/brozzler.git
synced 2025-08-05 13:04:14 -04:00
ci: use uv
This commit is contained in:
parent
7b691fe397
commit
aea4286bd1
2 changed files with 10 additions and 7 deletions
8
.github/workflows/setup/action.yml
vendored
8
.github/workflows/setup/action.yml
vendored
|
@ -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
|
||||
|
|
9
.github/workflows/tests.yml
vendored
9
.github/workflows/tests.yml
vendored
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue