mirror of
https://github.com/internetarchive/brozzler.git
synced 2025-08-06 05:24:19 -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
|
name: Test setup
|
||||||
|
|
||||||
|
inputs:
|
||||||
|
python-version:
|
||||||
|
required: true
|
||||||
|
|
||||||
runs:
|
runs:
|
||||||
using: composite
|
using: composite
|
||||||
steps:
|
steps:
|
||||||
|
@ -21,7 +25,5 @@ runs:
|
||||||
|
|
||||||
- name: Install pip dependencies
|
- name: Install pip dependencies
|
||||||
run: |
|
run: |
|
||||||
pip install .[rethinkdb,warcprox,yt-dlp]
|
uv sync --python ${{ inputs.python-version }} --extra rethinkdb --extra warcprox --extra yt-dlp
|
||||||
# setuptools required by rethinkdb==2.4.9
|
|
||||||
pip install pytest setuptools
|
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
9
.github/workflows/tests.yml
vendored
9
.github/workflows/tests.yml
vendored
|
@ -20,12 +20,13 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- uses: actions/setup-python@v5
|
- name: Install uv
|
||||||
|
uses: astral-sh/setup-uv@v6
|
||||||
|
|
||||||
|
- uses: ./.github/workflows/setup
|
||||||
with:
|
with:
|
||||||
python-version: ${{ matrix.version }}
|
python-version: ${{ matrix.version }}
|
||||||
|
|
||||||
- uses: ./.github/workflows/setup
|
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: |
|
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