Skip to content

Commit 61e161b

Browse files
authored
🔨 Update generate-client.sh and docs (#2110)
1 parent c3577c0 commit 61e161b

File tree

4 files changed

+6
-15
lines changed

4 files changed

+6
-15
lines changed

.github/workflows/generate-client.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,12 @@ jobs:
2626
python-version: "3.10"
2727
- name: Install uv
2828
uses: astral-sh/setup-uv@v7
29-
with:
30-
version: "0.4.15"
31-
enable-cache: true
3229
- name: Install dependencies
3330
run: bun ci
3431
- run: uv sync
3532
working-directory: backend
36-
- run: uv run bash scripts/generate-client.sh
33+
- run: bash scripts/generate-client.sh
3734
env:
38-
VIRTUAL_ENV: backend/.venv
3935
SECRET_KEY: just-for-generating-client
4036
POSTGRES_PASSWORD: just-for-generating-client
4137
FIRST_SUPERUSER_PASSWORD: just-for-generating-client

.github/workflows/playwright.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,16 +59,11 @@ jobs:
5959
limit-access-to-actor: true
6060
- name: Install uv
6161
uses: astral-sh/setup-uv@v7
62-
with:
63-
version: "0.4.15"
64-
enable-cache: true
6562
- run: uv sync
6663
working-directory: backend
6764
- run: bun ci
6865
working-directory: frontend
69-
- run: uv run bash scripts/generate-client.sh
70-
env:
71-
VIRTUAL_ENV: backend/.venv
66+
- run: bash scripts/generate-client.sh
7267
- run: docker compose build
7368
- run: docker compose down -v --remove-orphans
7469
- name: Run Playwright tests

frontend/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ But it would be only to clean them up, leaving them won't really have any effect
4848
* From the top level project directory, run the script:
4949

5050
```bash
51-
./scripts/generate-client.sh
51+
bash ./scripts/generate-client.sh
5252
```
5353

5454
* Commit the changes.

scripts/generate-client.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ set -e
44
set -x
55

66
cd backend
7-
python -c "import app.main; import json; print(json.dumps(app.main.app.openapi()))" > ../openapi.json
7+
uv run python -c "import app.main; import json; print(json.dumps(app.main.app.openapi()))" > ../openapi.json
88
cd ..
99
mv openapi.json frontend/
10-
npm run -w frontend generate-client
11-
npm run lint
10+
bun run --filter frontend generate-client
11+
bun run lint

0 commit comments

Comments
 (0)