Skip to content

Commit 8c54202

Browse files
authored
Reduce skipping of collection of artifacts (#160)
1 parent 845d2f7 commit 8c54202

1 file changed

Lines changed: 8 additions & 7 deletions

File tree

.github/workflows/python-release.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -135,25 +135,21 @@ jobs:
135135

136136
test_abi3_wheels:
137137
needs: build_wheels_pecos_rslib
138-
runs-on: ${{ matrix.runner }}
138+
runs-on: ${{ matrix.platform.runner }}
139139
strategy:
140140
fail-fast: false
141141
matrix:
142142
python-version: ['3.10', '3.11', '3.12', '3.13']
143-
include:
144-
# Linux x86_64
143+
platform:
145144
- runner: ubuntu-latest
146145
os: ubuntu-latest
147146
architecture: x86_64
148-
# Windows x86_64
149147
- runner: windows-latest
150148
os: windows-latest
151149
architecture: x86_64
152-
# macOS x86_64 (Intel)
153150
- runner: macos-13
154151
os: macos-latest
155152
architecture: x86_64
156-
# macOS aarch64 (Apple Silicon)
157153
- runner: macos-latest
158154
os: macos-latest
159155
architecture: aarch64
@@ -170,7 +166,7 @@ jobs:
170166
- name: Download abi3 wheel
171167
uses: actions/download-artifact@v4
172168
with:
173-
name: wheel-pecos-rslib-${{ matrix.os }}-${{ matrix.architecture }}
169+
name: wheel-pecos-rslib-${{ matrix.platform.os }}-${{ matrix.platform.architecture }}
174170
path: ./pecos-rslib-wheel
175171

176172
- name: Test abi3 wheel with Python ${{ matrix.python-version }}
@@ -290,6 +286,11 @@ jobs:
290286

291287
collect_artifacts:
292288
needs: [build_wheels_pecos_rslib, build_sdist_quantum_pecos, build_wheels_quantum_pecos, test_abi3_wheels]
289+
if: |
290+
needs.build_wheels_pecos_rslib.result == 'success' &&
291+
needs.build_sdist_quantum_pecos.result == 'success' &&
292+
needs.build_wheels_quantum_pecos.result == 'success' &&
293+
needs.test_abi3_wheels.result == 'success'
293294
runs-on: ubuntu-latest
294295
steps:
295296
- name: Create distribution directories

0 commit comments

Comments
 (0)