Skip to content

Commit

Permalink
Port to uv
Browse files Browse the repository at this point in the history
  • Loading branch information
pamelafox committed Oct 21, 2024
1 parent 2cdb54a commit 21dd904
Showing 1 changed file with 16 additions and 8 deletions.
24 changes: 16 additions & 8 deletions .github/workflows/app-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,6 @@ jobs:
test-package:
name: Test ${{ matrix.os }} Python ${{ matrix.python_version }}
runs-on: ${{ matrix.os }}
env:
POSTGRES_HOST: localhost
POSTGRES_USERNAME: postgres
POSTGRES_PASSWORD: root
POSTGRES_DATABASE: postgres
POSTGRES_SSL: disable
strategy:
fail-fast: false
matrix:
Expand All @@ -40,6 +34,13 @@ jobs:
exclude:
- os: macos-latest-xlarge
python_version: "3.10"
env:
UV_SYSTEM_PYTHON: 1
POSTGRES_HOST: localhost
POSTGRES_USERNAME: postgres
POSTGRES_PASSWORD: root
POSTGRES_DATABASE: postgres
POSTGRES_SSL: disable
steps:
- uses: actions/checkout@v4

Expand Down Expand Up @@ -74,13 +75,20 @@ jobs:
python-version: ${{ matrix.python_version }}
architecture: x64

- name: Install uv
uses: astral-sh/setup-uv@v3
with:
enable-cache: true
version: "0.4.20"
cache-dependency-glob: "requirements**.txt"

- name: Install dependencies
run: |
python -m pip install -r requirements-dev.txt
uv pip install -r requirements-dev.txt
- name: Install app as editable app
run: |
python -m pip install -e src/backend
uv pip install -e src/backend
- name: Setup local database with seed data
run: |
Expand Down

0 comments on commit 21dd904

Please sign in to comment.