@@ -39,24 +39,15 @@ jobs:
39
39
strategy :
40
40
matrix :
41
41
python-version :
42
- - ' 3.10'
43
42
- ' 3.11'
43
+ - ' 3.12'
44
44
platform :
45
- - linux-cuda-11_7
46
- - linux-rocm-5_2
47
45
- linux-cpu
48
46
- macos-default
49
47
- windows-cpu
50
48
include :
51
- - platform : linux-cuda-11_7
52
- os : ubuntu-22.04
53
- github-env : $GITHUB_ENV
54
- - platform : linux-rocm-5_2
55
- os : ubuntu-22.04
56
- extra-index-url : ' https://download.pytorch.org/whl/rocm5.2'
57
- github-env : $GITHUB_ENV
58
49
- platform : linux-cpu
59
- os : ubuntu-22 .04
50
+ os : ubuntu-24 .04
60
51
extra-index-url : ' https://download.pytorch.org/whl/cpu'
61
52
github-env : $GITHUB_ENV
62
53
- platform : macos-default
70
61
timeout-minutes : 15 # expected run time: 2-6 min, depending on platform
71
62
env :
72
63
PIP_USE_PEP517 : ' 1'
64
+ UV_SYSTEM_PYTHON : 1
65
+
73
66
steps :
74
67
- name : checkout
75
68
# https://github.com/nschloe/action-cached-lfs-checkout
@@ -92,20 +85,25 @@ jobs:
92
85
- '!invokeai/frontend/web/**'
93
86
- 'tests/**'
94
87
88
+ - name : setup uv
89
+ if : ${{ steps.changed-files.outputs.python_any_changed == 'true' || inputs.always_run == true }}
90
+ uses : astral-sh/setup-uv@v5
91
+ with :
92
+ version : ' 0.6.10'
93
+ enable-cache : true
94
+ python-version : ${{ matrix.python-version }}
95
+
95
96
- name : setup python
96
97
if : ${{ steps.changed-files.outputs.python_any_changed == 'true' || inputs.always_run == true }}
97
98
uses : actions/setup-python@v5
98
99
with :
99
100
python-version : ${{ matrix.python-version }}
100
- cache : pip
101
- cache-dependency-path : pyproject.toml
102
101
103
102
- name : install dependencies
104
103
if : ${{ steps.changed-files.outputs.python_any_changed == 'true' || inputs.always_run == true }}
105
104
env :
106
- PIP_EXTRA_INDEX_URL : ${{ matrix.extra-index-url }}
107
- run : >
108
- pip3 install --editable=".[test]"
105
+ UV_INDEX : ${{ matrix.extra-index-url }}
106
+ run : uv pip install --editable ".[test]"
109
107
110
108
- name : run pytest
111
109
if : ${{ steps.changed-files.outputs.python_any_changed == 'true' || inputs.always_run == true }}
0 commit comments