Skip to content

Commit 31f9eee

Browse files
ci: use uv in typegen-checks
1 parent a33dda4 commit 31f9eee

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

.github/workflows/typegen-checks.yml

+13-5
Original file line numberDiff line numberDiff line change
@@ -49,17 +49,25 @@ jobs:
4949
- 'pyproject.toml'
5050
- 'invokeai/**'
5151
52+
- name: setup uv
53+
if: ${{ steps.changed-files.outputs.src_any_changed == 'true' || inputs.always_run == true }}
54+
uses: astral-sh/setup-uv@v5
55+
with:
56+
version: '0.6.4'
57+
enable-cache: true
58+
python-version: '3.11'
59+
5260
- name: setup python
5361
if: ${{ steps.changed-files.outputs.src_any_changed == 'true' || inputs.always_run == true }}
5462
uses: actions/setup-python@v5
5563
with:
56-
python-version: '3.10'
57-
cache: pip
58-
cache-dependency-path: pyproject.toml
64+
python-version: '3.11'
5965

60-
- name: install python dependencies
66+
- name: install dependencies
6167
if: ${{ steps.changed-files.outputs.src_any_changed == 'true' || inputs.always_run == true }}
62-
run: pip3 install --use-pep517 --editable="."
68+
env:
69+
UV_INDEX: ${{ matrix.extra-index-url }}
70+
run: uv pip install --editable .
6371

6472
- name: install frontend dependencies
6573
if: ${{ steps.changed-files.outputs.src_any_changed == 'true' || inputs.always_run == true }}

0 commit comments

Comments
 (0)