Skip to content

Commit 2509177

Browse files
committed
CI: Use astral-sh/setup-uv action
1 parent fdae460 commit 2509177

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

.github/workflows/test.yml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,22 @@ jobs:
3232
python-version: ${{ matrix.python-version }}
3333
cache: 'pip'
3434
cache-dependency-path: 'py.requirements/*.txt'
35+
- name: setup-uv -- Speed-up Python package installations ...
36+
uses: astral-sh/setup-uv@v3
37+
with:
38+
enable-cache: true
39+
cache-dependency-glob: |
40+
**/pyproject.toml
41+
**/py.requirements/ci.github.testing.txt
42+
**/py.requirements/basic.txt
3543
- name: "Install Python package dependencies (with: uv)"
3644
run: |
37-
python -m pip install -U uv
38-
python -m uv pip install -U pip setuptools wheel
39-
python -m uv pip install --upgrade -r py.requirements/ci.github.testing.txt
40-
python -m uv pip install -e .
45+
uv venv
46+
uv pip install -U pip setuptools wheel
47+
uv pip install -U -r py.requirements/ci.github.testing.txt
48+
uv pip install -e .
4149
- name: Run tests
42-
run: pytest
50+
run: uv run pytest
4351
- name: Upload test reports
4452
uses: actions/upload-artifact@v3
4553
with:

0 commit comments

Comments
 (0)