11name : Python Artifacts
22
33env :
4- TRIGGER_ON_PR_PUSH : false # Set to true to enable triggers on PR pushes
4+ TRIGGER_ON_PR_PUSH : true # Set to true to enable triggers on PR pushes
55 PYTHON_VERSION : ' 3.10'
66
77on :
@@ -66,20 +66,13 @@ jobs:
6666 with :
6767 python-version : ${{ env.PYTHON_VERSION }}
6868
69- - name : Install the latest version of uv
70- uses : astral-sh/setup-uv@v4
71- with :
72- enable-cache : true
73- ignore-nothing-to-cache : true
74- cache-dependency-glob : |
75- **/pyproject.toml
76- **/requirements*.txt
77- **/uv.lock
78-
7969 - name : Remove conflicting README.md
8070 run : |
8171 if [ -f crates/pecos-python/README.md ]; then
8272 mv crates/pecos-python/README.md crates/pecos-python/README.md.bak
73+ echo "Moved conflicting README.md to README.md.bak"
74+ else
75+ echo "No conflicting README.md found"
8376 fi
8477
8578 - name : Build pecos-rslib SDist
@@ -88,20 +81,21 @@ jobs:
8881 command : sdist
8982 args : --out dist
9083 working-directory : python/pecos-rslib
91- manylinux : auto
9284
9385 - name : Restore README.md
9486 if : always()
9587 run : |
9688 if [ -f crates/pecos-python/README.md.bak ]; then
9789 mv crates/pecos-python/README.md.bak crates/pecos-python/README.md
90+ echo "Restored README.md from backup"
91+ else
92+ echo "No README.md backup found"
9893 fi
9994
100- - name : Install and test pecos-rslib SDist
95+ - name : Test pecos-rslib SDist
10196 run : |
102- uv sync --project .
103- uv pip install --force-reinstall python/pecos-rslib/dist/*.tar.gz
104- uv run python -c 'import pecos_rslib; print(pecos_rslib.__version__)'
97+ pip install --force-reinstall --verbose python/pecos-rslib/dist/*.tar.gz
98+ python -c 'import pecos_rslib; print(pecos_rslib.__version__)'
10599
106100 - name : Upload pecos-rslib SDist
107101 uses : actions/upload-artifact@v4
@@ -136,20 +130,13 @@ jobs:
136130 with :
137131 python-version : ${{ matrix.python-version }}
138132
139- - name : Install the latest version of uv
140- uses : astral-sh/setup-uv@v4
141- with :
142- enable-cache : true
143- ignore-nothing-to-cache : true
144- cache-dependency-glob : |
145- **/pyproject.toml
146- **/requirements*.txt
147- **/uv.lock
148-
149133 - name : Remove conflicting README.md
150134 run : |
151135 if [ -f crates/pecos-python/README.md ]; then
152136 mv crates/pecos-python/README.md crates/pecos-python/README.md.bak
137+ echo "Moved conflicting README.md to README.md.bak"
138+ else
139+ echo "No conflicting README.md found"
153140 fi
154141
155142 - name : Build wheel
@@ -166,14 +153,16 @@ jobs:
166153 run : |
167154 if [ -f crates/pecos-python/README.md.bak ]; then
168155 mv crates/pecos-python/README.md.bak crates/pecos-python/README.md
156+ echo "Restored README.md from backup"
157+ else
158+ echo "No README.md backup found"
169159 fi
170160
171161 - name : Test wheel
172162 if : ${{ !(matrix.architecture == 'x86_64' && matrix.os == 'macos-latest') && matrix.architecture != 'aarch64' }}
173163 run : |
174- uv sync --project .
175- uv pip install --force-reinstall python/pecos-rslib/dist/*.whl
176- uv run python -c 'import pecos_rslib; print(pecos_rslib.__version__)'
164+ pip install --force-reinstall --verbose python/pecos-rslib/dist/*.whl
165+ python -c 'import pecos_rslib; print(pecos_rslib.__version__)'
177166
178167 - name : Upload wheel
179168 uses : actions/upload-artifact@v4
@@ -198,38 +187,29 @@ jobs:
198187 with :
199188 python-version : ${{ env.PYTHON_VERSION }}
200189
201- - name : Install the latest version of uv
202- uses : astral-sh/setup-uv@v4
203- with :
204- enable-cache : true
205- ignore-nothing-to-cache : true
206- cache-dependency-glob : |
207- **/pyproject.toml
208- **/requirements*.txt
209- **/uv.lock
210-
211190 - name : Download pecos-rslib wheel
212191 uses : actions/download-artifact@v4
213192 with :
214193 name : wheel-pecos-rslib-ubuntu-latest-x86_64-py${{ env.PYTHON_VERSION }}
215194 path : ./pecos-rslib-wheel
216195
217- - name : Setup environment and install dependencies
196+ - name : Install pecos-rslib
197+ run : pip install ./pecos-rslib-wheel/*.whl
198+
199+ - name : Install build dependencies
218200 run : |
219- uv sync --project .
220- uv pip install ./pecos-rslib-wheel/*.whl
221- uv pip install build
201+ python -m pip install --upgrade pip
202+ pip install build
222203
223204 - name : Build quantum-pecos SDist
224205 run : |
225206 cd python/quantum-pecos
226- uv pip install --system build
227207 python -m build --sdist --outdir dist
228208
229209 - name : Test quantum-pecos SDist
230210 run : |
231- uv pip install python/quantum-pecos/dist/*.tar.gz
232- uv run python -c 'import pecos; print(pecos.__version__)'
211+ pip install python/quantum-pecos/dist/*.tar.gz
212+ python -c 'import pecos; print(pecos.__version__)'
233213
234214 - name : Upload quantum-pecos SDist
235215 uses : actions/upload-artifact@v4
@@ -253,30 +233,24 @@ jobs:
253233 with :
254234 ref : ${{ inputs.sha || github.sha }}
255235
256- - name : Set up Python
236+ - name : Set up Python ${{ matrix.python-version }}
257237 uses : actions/setup-python@v5
258238 with :
259239 python-version : ${{ matrix.python-version }}
260240
261- - name : Install the latest version of uv
262- uses : astral-sh/setup-uv@v4
263- with :
264- enable-cache : true
265- ignore-nothing-to-cache : true
266- cache-dependency-glob : |
267- **/pyproject.toml
268- **/requirements*.txt
269- **/uv.lock
270-
271241 - name : Download pecos-rslib wheel
272242 uses : actions/download-artifact@v4
273243 with :
274244 name : wheel-pecos-rslib-ubuntu-latest-x86_64-py${{ matrix.python-version }}
275245 path : ./pecos-rslib-wheel
276246
277- - name : Setup environment and install dependencies
247+ - name : Install pecos-rslib
248+ run : pip install ./pecos-rslib-wheel/*.whl
249+
250+ - name : Install build dependencies
278251 run : |
279- uv pip install --system ./pecos-rslib-wheel/*.whl build
252+ python -m pip install --upgrade pip
253+ pip install build
280254
281255 - name : Build quantum-pecos wheel
282256 run : |
@@ -285,9 +259,8 @@ jobs:
285259
286260 - name : Test quantum-pecos wheel
287261 run : |
288- uv sync # This will use the workspace config correctly
289- uv pip install python/quantum-pecos/dist/*.whl
290- uv run python -c 'import pecos; print(pecos.__version__)'
262+ pip install python/quantum-pecos/dist/*.whl
263+ python -c 'import pecos; print(pecos.__version__)'
291264
292265 - name : Upload quantum-pecos wheel
293266 uses : actions/upload-artifact@v4
0 commit comments