Skip to content

Commit e241d3c

Browse files
committed
CI: add twine check
To avoid having to try to release each time.
1 parent 208a6db commit e241d3c

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/workflows/main.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,11 @@ jobs:
4747
run: |
4848
ls -lh "wheelhouse/"
4949
50+
- name: Validate wheel metadata
51+
run: |
52+
export PATH=$PATH:$HOME/.local/bin
53+
twine check wheelhouse/*.whl
54+
5055
- name: Create docs
5156
run: |
5257
export PATH=$PATH:$HOME/.local/bin
@@ -112,6 +117,11 @@ jobs:
112117
run: |
113118
ls -lh "dist/"
114119
120+
- name: Validate wheel metadata
121+
run: |
122+
export PATH=$PATH:$HOME/.local/bin
123+
twine check dist/*.whl
124+
115125
- name: Upload to PyPi
116126
env:
117127
TWINE_USERNAME: ${{ secrets.TWINE_USERNAME }}
@@ -163,6 +173,11 @@ jobs:
163173
run: |
164174
ls -lh "wheelhouse/"
165175
176+
- name: Validate wheel metadata
177+
run: |
178+
export PATH=$PATH:$HOME/.local/bin
179+
twine check wheelhouse/*.whl
180+
166181
- name: Upload to PyPi
167182
env:
168183
TWINE_USERNAME: ${{ secrets.TWINE_USERNAME }}
@@ -218,6 +233,10 @@ jobs:
218233
run: |
219234
ls "dist/"
220235
236+
- name: Validate wheel metadata
237+
run: |
238+
twine check dist/*.whl
239+
221240
- name: Upload to PyPi
222241
env:
223242
TWINE_USERNAME: ${{ secrets.TWINE_USERNAME }}

0 commit comments

Comments
 (0)