Skip to content

Commit

Permalink
CI: Use astral-sh/setup-uv action
Browse files Browse the repository at this point in the history
  • Loading branch information
jenisys committed Oct 3, 2024
1 parent fdae460 commit b06c164
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,18 @@ jobs:
python-version: ${{ matrix.python-version }}
cache: 'pip'
cache-dependency-path: 'py.requirements/*.txt'
- name: setup-uv -- Speed-up Python package installations ...
uses: astral-sh/setup-uv@v3
with:
enable-cache: true
cache-dependency-glob: |
**/pyproject.toml
**/py.requirements/ci.github.testing.txt
**/py.requirements/basic.txt
- name: "Install Python package dependencies (with: uv)"
run: |
python -m pip install -U uv
python -m uv pip install -U pip setuptools wheel
python -m uv pip install --upgrade -r py.requirements/ci.github.testing.txt
python -m uv pip install -U -r py.requirements/ci.github.testing.txt
python -m uv pip install -e .
- name: Run tests
run: pytest
Expand Down

0 comments on commit b06c164

Please sign in to comment.