Skip to content

Commit af213bb

Browse files
SteveDiamondclaude
andcommitted
Add wheel integrity check before PyPI upload
Validates all wheels with unzip and twine check to catch corruption before publishing. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent a22c27a commit af213bb

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,15 @@ jobs:
8989
path: dist
9090
merge-multiple: true
9191

92+
- name: Verify wheel integrity
93+
run: |
94+
pip install twine
95+
for whl in dist/*.whl; do
96+
echo "Checking $whl..."
97+
unzip -t "$whl" || { echo "CORRUPT: $whl"; exit 1; }
98+
done
99+
twine check dist/*
100+
92101
- uses: pypa/gh-action-pypi-publish@release/v1
93102
with:
94103
verbose: true

0 commit comments

Comments
 (0)