@@ -109,6 +109,10 @@ jobs:
109109 - name : Install uv
110110 uses : astral-sh/setup-uv@d4b2f3b6ecc6e67c4457f6d3e41ec42d3d0fcb86 # v5
111111
112+ - name : Install twine
113+ run : |
114+ uv pip install twine
115+
112116 # To keep the build workflow simple, all matrix jobs will build a wheel for later use within this workflow.
113117 - name : Build and check cuda.pathfinder wheel
114118 run : |
@@ -128,6 +132,11 @@ jobs:
128132
129133 # We only need/want a single pure python wheel, pick linux-64 index 0.
130134 # This is what we will use for testing & releasing.
135+ - name : Check cuda.pathfinder wheel
136+ if : ${{ strategy.job-index == 0 && inputs.host-platform == 'linux-64' }}
137+ run : |
138+ twine check --strict cuda_pathfinder/dist/*.whl
139+
131140 - name : Upload cuda.pathfinder build artifacts
132141 if : ${{ strategy.job-index == 0 && inputs.host-platform == 'linux-64' }}
133142 uses : actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
@@ -187,6 +196,10 @@ jobs:
187196 ls -lahR ${{ env.CUDA_BINDINGS_ARTIFACTS_DIR }}
188197
189198
199+ - name : Check cuda.bindings wheel
200+ run : |
201+ twine check --strict ${{ env.CUDA_BINDINGS_ARTIFACTS_DIR }}/*.whl
202+
190203 - name : Upload cuda.bindings build artifacts
191204 uses : actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
192205 with :
@@ -272,6 +285,11 @@ jobs:
272285 $CHOWN -R $(whoami) cuda_python/dist/*.whl
273286 ls -lahR cuda_python/dist
274287
288+ - name : Check cuda-python wheel
289+ if : ${{ strategy.job-index == 0 && inputs.host-platform == 'linux-64' }}
290+ run : |
291+ twine check --strict cuda_python/dist/*.whl
292+
275293 - name : Upload cuda-python build artifacts
276294 if : ${{ strategy.job-index == 0 && inputs.host-platform == 'linux-64' }}
277295 uses : actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
@@ -442,6 +460,9 @@ jobs:
442460 "${{ env.CUDA_CORE_ARTIFACTS_DIR }}"/cu"${BUILD_PREV_CUDA_MAJOR}"/cuda_core*.whl \
443461 --output-dir "${{ env.CUDA_CORE_ARTIFACTS_DIR }}"
444462
463+ - name : Check cuda.core wheel
464+ run : |
465+ twine check --strict ${{ env.CUDA_CORE_ARTIFACTS_DIR }}/*.whl
445466
446467 - name : Upload cuda.core build artifacts
447468 uses : actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
0 commit comments