Skip to content

Commit

Permalink
👷 Use uv for Python env to generate client (#1362)
Browse files Browse the repository at this point in the history
  • Loading branch information
tiangolo authored Sep 23, 2024
1 parent 6ed7aee commit 284527b
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/generate-client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,18 @@ jobs:
- uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install uv
uses: astral-sh/setup-uv@v2
with:
version: "0.4.15"
- name: Install dependencies
run: npm ci
working-directory: frontend
- run: pip install ./backend
- run: bash scripts/generate-client.sh
- run: uv sync
working-directory: backend
- run: uv run bash scripts/generate-client.sh
env:
VIRTUAL_ENV: backend/.venv
- name: Commit changes
run: |
git config --local user.email "[email protected]"
Expand All @@ -46,4 +53,3 @@ jobs:
uses: re-actors/alls-green@release/v1
with:
jobs: ${{ toJSON(needs) }}

0 comments on commit 284527b

Please sign in to comment.