Skip to content

Commit 168e5ee

Browse files
psychedelicioushipsterusername
authored andcommitted
ci: use uv in typegen-checks
ci: use uv in typegen-checks to generate types experiment: simulate typegen-checks failure Revert "experiment: simulate typegen-checks failure" This reverts commit f53c687.
1 parent 7acaa86 commit 168e5ee

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

.github/workflows/typegen-checks.yml

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,17 +54,25 @@ jobs:
5454
- 'pyproject.toml'
5555
- 'invokeai/**'
5656
57+
- name: setup uv
58+
if: ${{ steps.changed-files.outputs.src_any_changed == 'true' || inputs.always_run == true }}
59+
uses: astral-sh/setup-uv@v5
60+
with:
61+
version: '0.6.4'
62+
enable-cache: true
63+
python-version: '3.11'
64+
5765
- name: setup python
5866
if: ${{ steps.changed-files.outputs.src_any_changed == 'true' || inputs.always_run == true }}
5967
uses: actions/setup-python@v5
6068
with:
61-
python-version: '3.10'
62-
cache: pip
63-
cache-dependency-path: pyproject.toml
69+
python-version: '3.11'
6470

65-
- name: install python dependencies
71+
- name: install dependencies
6672
if: ${{ steps.changed-files.outputs.src_any_changed == 'true' || inputs.always_run == true }}
67-
run: pip3 install --use-pep517 --editable="."
73+
env:
74+
UV_INDEX: ${{ matrix.extra-index-url }}
75+
run: uv pip install --editable .
6876

6977
- name: install frontend dependencies
7078
if: ${{ steps.changed-files.outputs.src_any_changed == 'true' || inputs.always_run == true }}
@@ -77,7 +85,7 @@ jobs:
7785

7886
- name: generate schema
7987
if: ${{ steps.changed-files.outputs.src_any_changed == 'true' || inputs.always_run == true }}
80-
run: make frontend-typegen
88+
run: cd invokeai/frontend/web && uv run ../../../scripts/generate_openapi_schema.py | pnpm typegen
8189
shell: bash
8290

8391
- name: compare files

0 commit comments

Comments
 (0)