Skip to content

Commit 21dd904

Browse files
committed
Port to uv
1 parent 2cdb54a commit 21dd904

File tree

1 file changed

+16
-8
lines changed

1 file changed

+16
-8
lines changed

.github/workflows/app-tests.yaml

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,6 @@ jobs:
2424
test-package:
2525
name: Test ${{ matrix.os }} Python ${{ matrix.python_version }}
2626
runs-on: ${{ matrix.os }}
27-
env:
28-
POSTGRES_HOST: localhost
29-
POSTGRES_USERNAME: postgres
30-
POSTGRES_PASSWORD: root
31-
POSTGRES_DATABASE: postgres
32-
POSTGRES_SSL: disable
3327
strategy:
3428
fail-fast: false
3529
matrix:
@@ -40,6 +34,13 @@ jobs:
4034
exclude:
4135
- os: macos-latest-xlarge
4236
python_version: "3.10"
37+
env:
38+
UV_SYSTEM_PYTHON: 1
39+
POSTGRES_HOST: localhost
40+
POSTGRES_USERNAME: postgres
41+
POSTGRES_PASSWORD: root
42+
POSTGRES_DATABASE: postgres
43+
POSTGRES_SSL: disable
4344
steps:
4445
- uses: actions/checkout@v4
4546

@@ -74,13 +75,20 @@ jobs:
7475
python-version: ${{ matrix.python_version }}
7576
architecture: x64
7677

78+
- name: Install uv
79+
uses: astral-sh/setup-uv@v3
80+
with:
81+
enable-cache: true
82+
version: "0.4.20"
83+
cache-dependency-glob: "requirements**.txt"
84+
7785
- name: Install dependencies
7886
run: |
79-
python -m pip install -r requirements-dev.txt
87+
uv pip install -r requirements-dev.txt
8088
8189
- name: Install app as editable app
8290
run: |
83-
python -m pip install -e src/backend
91+
uv pip install -e src/backend
8492
8593
- name: Setup local database with seed data
8694
run: |

0 commit comments

Comments
 (0)