Skip to content

Commit 35096a3

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

1 file changed

Lines changed: 11 additions & 4 deletions

File tree

.github/workflows/test.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,19 @@ 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 pip install --system -U pip setuptools wheel
46+
uv pip install --system -U -r py.requirements/ci.github.testing.txt
47+
uv pip install --system -e .
4148
- name: Run tests
4249
run: pytest
4350
- name: Upload test reports

0 commit comments

Comments
 (0)