Skip to content

Commit

Permalink
switch to uv
Browse files Browse the repository at this point in the history
  • Loading branch information
adRn-s committed Oct 21, 2024
1 parent 305c00d commit a2ecaa0
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/django.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,13 @@ jobs:
cache: "pip"
cache-dependency-path: backend/requirements/${{ matrix.python-version }}/testing.txt
python-version: ${{ matrix.python-version }}

- name: Set up UV for py ${{ matrix.python-version }}
uses: yezz123/setup-uv@v4

- name: Install dependencies
run: |
python -m pip install --upgrade pip
test -z ${SETUPTOOLS_USE_DISTUTILS+x} && unset SETUPTOOLS_USE_DISTUTILS || :
pip install -r backend/requirements/${{ matrix.python-version }}/prod.txt
uv pip install --system -r backend/requirements/${{ matrix.python-version }}/prod.txt
- name: Verify migrations
Expand All @@ -99,6 +100,6 @@ jobs:
DATABASE_URL: postgres://postgres:${{ secrets.POSTGRES_PASSWORD }}@127.0.0.1:${{ job.services.postgres.ports['5432'] }}/postgres
SECRET_KEY: ${{ secrets.SECRET_KEY }}
run: |
pip install -r backend/requirements/${{ matrix.python-version }}/testing.txt
uv pip install --system -r backend/requirements/${{ matrix.python-version }}/testing.txt
python backend/manage.py test backend --parallel

0 comments on commit a2ecaa0

Please sign in to comment.