@@ -39,24 +39,15 @@ jobs:
3939 strategy :
4040 matrix :
4141 python-version :
42- - ' 3.10'
4342 - ' 3.11'
43+ - ' 3.12'
4444 platform :
45- - linux-cuda-11_7
46- - linux-rocm-5_2
4745 - linux-cpu
4846 - macos-default
4947 - windows-cpu
5048 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
5849 - platform : linux-cpu
59- os : ubuntu-22 .04
50+ os : ubuntu-24 .04
6051 extra-index-url : ' https://download.pytorch.org/whl/cpu'
6152 github-env : $GITHUB_ENV
6253 - platform : macos-default
7061 timeout-minutes : 15 # expected run time: 2-6 min, depending on platform
7162 env :
7263 PIP_USE_PEP517 : ' 1'
64+ UV_SYSTEM_PYTHON : 1
65+
7366 steps :
7467 - name : checkout
7568 # https://github.com/nschloe/action-cached-lfs-checkout
@@ -92,20 +85,25 @@ jobs:
9285 - '!invokeai/frontend/web/**'
9386 - 'tests/**'
9487
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+
9596 - name : setup python
9697 if : ${{ steps.changed-files.outputs.python_any_changed == 'true' || inputs.always_run == true }}
9798 uses : actions/setup-python@v5
9899 with :
99100 python-version : ${{ matrix.python-version }}
100- cache : pip
101- cache-dependency-path : pyproject.toml
102101
103102 - name : install dependencies
104103 if : ${{ steps.changed-files.outputs.python_any_changed == 'true' || inputs.always_run == true }}
105104 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]"
109107
110108 - name : run pytest
111109 if : ${{ steps.changed-files.outputs.python_any_changed == 'true' || inputs.always_run == true }}
0 commit comments