1010 os : [windows-2019, ubuntu-22.04]
1111
1212 steps :
13- - uses : actions/setup-python@v4
14- with :
15- python-version : 3.9
16-
1713 - name : Cache interpreters
1814 uses : actions/cache@v3
1915 id : cache
@@ -30,14 +26,12 @@ jobs:
3026 uses : astral-sh/setup-uv@v7
3127 with :
3228 version : " 0.9.17"
33-
34- - name : Install requirements
35- if : steps.cache.outputs.cache-hit != 'true'
36- run : pip install -r requirements.txt
29+ ignore-empty-workdir : true
30+ enable-cache : false
3731
3832 - name : Create interpreters
3933 if : steps.cache.outputs.cache-hit != 'true'
40- run : python tools/build.py create_interpreters ${{ env.PYTHON_VERSION }} --dest .
34+ run : uv run tools/build.py create_interpreters ${{ env.PYTHON_VERSION }} --dest .
4135
4236 - name : Tar interpreters
4337 if : steps.cache.outputs.cache-hit != 'true'
6054 arch : [x64, x86]
6155
6256 steps :
63- - uses : actions/setup-python@v4
57+ - name : Install uv
58+ uses : astral-sh/setup-uv@v7
6459 with :
65- python-version : 3.9
60+ version : " 0.9.17"
61+ ignore-empty-workdir : true
62+ enable-cache : false
6663
6764 - name : Check out repository code
6865 uses : actions/checkout@v3
8683 arch : ${{ matrix.arch }}
8784
8885 - name : Perform build
89- run : python tools/build.py build_binaries ${{ env.PYTHON_VERSION }} ${{ matrix.arch }} ${{ runner.os }}
86+ run : uv run tools/build.py build_binaries ${{ env.PYTHON_VERSION }} ${{ matrix.arch }} ${{ runner.os }}
9087
9188 - uses : actions/upload-artifact@v4
9289 with :
@@ -102,9 +99,12 @@ jobs:
10299 Build-PBO :
103100 runs-on : windows-latest
104101 steps :
105- - uses : actions/setup-python@v4
102+ - name : Install uv
103+ uses : astral-sh/setup-uv@v7
106104 with :
107- python-version : 3.9
105+ version : " 0.9.17"
106+ ignore-empty-workdir : true
107+ enable-cache : false
108108
109109 - name : Check out repository code
110110 uses : actions/checkout@v3
@@ -119,7 +119,7 @@ jobs:
119119 - name : Install Mikero's tools
120120 uses : arma-actions/mikero-tools@bec8b18fc507ee3180cadeaf35249d3f2702b1ff
121121
122- - run : python tools/build.py build_pbos
122+ - run : uv run tools/build.py build_pbos
123123
124124 - uses : actions/upload-artifact@v4
125125 with :
@@ -140,9 +140,12 @@ jobs:
140140 arch : [x64, x86]
141141
142142 steps :
143- - uses : actions/setup-python@v4
143+ - name : Install uv
144+ uses : astral-sh/setup-uv@v7
144145 with :
145- python-version : 3.9
146+ version : " 0.9.17"
147+ ignore-empty-workdir : true
148+ enable-cache : false
146149
147150 - name : Check out repository code
148151 uses : actions/checkout@v3
@@ -173,10 +176,10 @@ jobs:
173176 run : sudo apt install -y gcc-multilib
174177
175178 - name : Copy templates
176- run : python tools/build.py copy_templates ${{ env.PYTHON_VERSION }}
179+ run : uv run tools/build.py copy_templates ${{ env.PYTHON_VERSION }}
177180
178181 - name : Run basic tests
179- run : python tools/build.py run_tests ${{ env.PYTHON_VERSION }} ${{ matrix.arch }} ${{ runner.os }}
182+ run : uv run tools/build.py run_tests ${{ env.PYTHON_VERSION }} ${{ matrix.arch }} ${{ runner.os }}
180183
181184 Consolidate :
182185 needs :
@@ -185,9 +188,12 @@ jobs:
185188 - Build-PBO
186189 runs-on : ubuntu-latest
187190 steps :
188- - uses : actions/setup-python@v4
191+ - name : Install uv
192+ uses : astral-sh/setup-uv@v7
189193 with :
190- python-version : 3.9
194+ version : " 0.9.17"
195+ ignore-empty-workdir : true
196+ enable-cache : false
191197
192198 - name : Check out repository code
193199 uses : actions/checkout@v3
@@ -215,13 +221,12 @@ jobs:
215221 run : chmod a+x @Pythia/PythiaTester*
216222
217223 - name : Copy templates
218- run : python tools/build.py copy_templates ${{ env.PYTHON_VERSION }}
224+ run : uv run tools/build.py copy_templates ${{ env.PYTHON_VERSION }}
219225
220226 - name : Unpack interpreters
221227 run : for i in python-*.tar; do tar xf "$i" --directory "@Pythia"; done
222228
223- - run : pip install -r requirements.txt
224- - run : python tools/build.py safety_checks ${{ env.PYTHON_VERSION }}
229+ - run : uv run tools/build.py safety_checks ${{ env.PYTHON_VERSION }}
225230
226231 - name : Remove linux 32bit Pythia
227232 run : rm -rf @Pythia/python-*-embed-linux32 @Pythia/Pythia.so @Pythia/PythiaSetPythonPath.so @Pythia/PythiaTester @Pythia/install_requirements32.sh
0 commit comments