Skip to content

Commit

Permalink
run uv in github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
mathiasertl committed Dec 1, 2024
1 parent d5404da commit 784c6f9
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,22 @@ jobs:
- name: Apply caching of dependencies
uses: actions/[email protected]
with:
path: ~/.cache/pip
path: ~/.cache/uv
key: os=${{ matrix.os }}-python=${{ matrix.python-version }}-pip-${{ hashFiles('**/requirements-*.txt') }}

- name: Install dependencies
run: |
pip install -U pip setuptools wheel
pip install -r requirements.txt -r requirements/requirements-test.txt django~=${{ matrix.django-version }} cryptography~=${{ matrix.cryptography-version }} pydantic~=${{ matrix.pydantic-version }}
pip install uv
uv pip install --system -U setuptools wheel
uv pip install --system -r requirements.txt -r requirements/requirements-test.txt django~=${{ matrix.django-version }} cryptography~=${{ matrix.cryptography-version }} pydantic~=${{ matrix.pydantic-version }}
- name: Initialize demo
run: python dev.py init-demo

- name: Run tests
run: pytest -v --cov-report term-missing --durations=20

# Prune cache, see:
# https://docs.astral.sh/uv/concepts/cache/#caching-in-continuous-integration
- name: Prune uv cache
run: uv cache prune --ci

0 comments on commit 784c6f9

Please sign in to comment.