Skip to content

Commit 4a166a7

Browse files
AbigailColwelltermim
authored andcommitted
add twine check in same environment as twine push
1 parent f00f733 commit 4a166a7

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

.github/workflows/test_linux.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,13 +121,17 @@ jobs:
121121
name: pymssql-linux-${{ matrix.manylinux }}_${{ matrix.arch }}-${{ github.sha }}
122122
path: dist
123123
overwrite: true
124+
- name: Install twine
125+
run:
126+
# upgrade packaging for PEP 639
127+
pip install --upgrade twine packaging>=24.2
124128

129+
- name: Check wheels and dist
130+
run:
131+
twine check dist/*
125132
- name: Publish wheels and sdist
126133
if: github.repository_owner == 'pymssql' && startsWith(github.ref, 'refs/tags/v')
127134
run: |
128-
# upgrade packaging for PEP 639
129-
pip install packaging>=24.2 --upgrade
130-
pip install twine --upgrade
131135
twine upload --skip-existing -u __token__ -p ${{secrets.PYMSSQL_PYPI_TOKEN}} dist/*
132136
133137
#- name: Publish wheels and sdist on test.pypi.org

0 commit comments

Comments
 (0)