👷 Use uv for Python env to generate client (#1362)

This commit is contained in:
Sebastián Ramírez
2024-09-24 00:05:29 +02:00
committed by GitHub
parent 6ed7aee371
commit 284527b7bc

View File

@@ -22,11 +22,18 @@ jobs:
- uses: actions/setup-python@v5 - uses: actions/setup-python@v5
with: with:
python-version: '3.10' python-version: '3.10'
- name: Install uv
uses: astral-sh/setup-uv@v2
with:
version: "0.4.15"
- name: Install dependencies - name: Install dependencies
run: npm ci run: npm ci
working-directory: frontend working-directory: frontend
- run: pip install ./backend - run: uv sync
- run: bash scripts/generate-client.sh working-directory: backend
- run: uv run bash scripts/generate-client.sh
env:
VIRTUAL_ENV: backend/.venv
- name: Commit changes - name: Commit changes
run: | run: |
git config --local user.email "github-actions@github.com" git config --local user.email "github-actions@github.com"
@@ -46,4 +53,3 @@ jobs:
uses: re-actors/alls-green@release/v1 uses: re-actors/alls-green@release/v1
with: with:
jobs: ${{ toJSON(needs) }} jobs: ${{ toJSON(needs) }}