Skip to content

Commit d32c4d1

Browse files
committed
Run tests with uv
1 parent e2cebe0 commit d32c4d1

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@ name: CI
22

33
on: [push, pull_request]
44

5+
env:
6+
UV_SYSTEM_PYTHON: 1
7+
UV_PYTHON_DOWNLOADS: never
8+
UV_PYTHON_PREFERENCE: only-system
9+
510
jobs:
611
checks:
712
runs-on: ubuntu-latest
@@ -24,7 +29,7 @@ jobs:
2429
ports:
2530
- 5432:5432
2631
strategy:
27-
fail-fast: false
32+
fail-fast: true
2833
matrix:
2934
django-version: ["4.2", "5.0", "5.1", "5.2"]
3035
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
@@ -34,10 +39,10 @@ jobs:
3439
uses: actions/setup-python@v6
3540
with:
3641
python-version: ${{ matrix.python-version }}
37-
- name: Install Requirements
38-
run: pip install cryptography psycopg "Django~=${{ matrix.django-version }}"
42+
- name: Setup uv
43+
uses: astral-sh/setup-uv@v6
3944
- name: Run Tests
40-
run: python manage.py test --noinput
45+
run: uv run --with "django~=${{ matrix.django-version }}" manage.py test --noinput
4146
env:
4247
PGCRYPTO_TEST_DATABASE: django-pgcrypto-${{ matrix.django-version }}-${{ matrix.python-version }}
4348
PGCRYPTO_TEST_PASSWORD: secret

0 commit comments

Comments
 (0)