🔨 Update generate-client.sh and docs (#2110)
This commit is contained in:
committed by
GitHub
parent
c3577c0526
commit
61e161bfb9
6
.github/workflows/generate-client.yml
vendored
6
.github/workflows/generate-client.yml
vendored
@@ -26,16 +26,12 @@ jobs:
|
||||
python-version: "3.10"
|
||||
- name: Install uv
|
||||
uses: astral-sh/setup-uv@v7
|
||||
with:
|
||||
version: "0.4.15"
|
||||
enable-cache: true
|
||||
- name: Install dependencies
|
||||
run: bun ci
|
||||
- run: uv sync
|
||||
working-directory: backend
|
||||
- run: uv run bash scripts/generate-client.sh
|
||||
- run: bash scripts/generate-client.sh
|
||||
env:
|
||||
VIRTUAL_ENV: backend/.venv
|
||||
SECRET_KEY: just-for-generating-client
|
||||
POSTGRES_PASSWORD: just-for-generating-client
|
||||
FIRST_SUPERUSER_PASSWORD: just-for-generating-client
|
||||
|
||||
7
.github/workflows/playwright.yml
vendored
7
.github/workflows/playwright.yml
vendored
@@ -59,16 +59,11 @@ jobs:
|
||||
limit-access-to-actor: true
|
||||
- name: Install uv
|
||||
uses: astral-sh/setup-uv@v7
|
||||
with:
|
||||
version: "0.4.15"
|
||||
enable-cache: true
|
||||
- run: uv sync
|
||||
working-directory: backend
|
||||
- run: bun ci
|
||||
working-directory: frontend
|
||||
- run: uv run bash scripts/generate-client.sh
|
||||
env:
|
||||
VIRTUAL_ENV: backend/.venv
|
||||
- run: bash scripts/generate-client.sh
|
||||
- run: docker compose build
|
||||
- run: docker compose down -v --remove-orphans
|
||||
- name: Run Playwright tests
|
||||
|
||||
@@ -48,7 +48,7 @@ But it would be only to clean them up, leaving them won't really have any effect
|
||||
* From the top level project directory, run the script:
|
||||
|
||||
```bash
|
||||
./scripts/generate-client.sh
|
||||
bash ./scripts/generate-client.sh
|
||||
```
|
||||
|
||||
* Commit the changes.
|
||||
|
||||
@@ -4,8 +4,8 @@ set -e
|
||||
set -x
|
||||
|
||||
cd backend
|
||||
python -c "import app.main; import json; print(json.dumps(app.main.app.openapi()))" > ../openapi.json
|
||||
uv run python -c "import app.main; import json; print(json.dumps(app.main.app.openapi()))" > ../openapi.json
|
||||
cd ..
|
||||
mv openapi.json frontend/
|
||||
npm run -w frontend generate-client
|
||||
npm run lint
|
||||
bun run --filter frontend generate-client
|
||||
bun run lint
|
||||
|
||||
Reference in New Issue
Block a user