Skip to content

Commit 5504e79

Browse files
committed
Use build-and-inspect-python to verify the dist
1 parent 41fac8c commit 5504e79

File tree

1 file changed

+1
-25
lines changed

1 file changed

+1
-25
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -104,35 +104,11 @@ jobs:
104104
with:
105105
# We want our tags here
106106
fetch-depth: 0
107+
- uses: hynek/[email protected]
107108
- uses: "actions/setup-python@v4"
108109
with:
109110
python-version: "3.10"
110111

111-
- name: Check if we have the publish key
112-
env:
113-
TEST_PYPI_API_TOKEN: ${{ secrets.TEST_PYPI_API_TOKEN }}
114-
if: "${{ env.TEST_PYPI_API_TOKEN != '' }}"
115-
run: |
116-
echo "DO_PUBLISH=yes" >> $GITHUB_ENV
117-
echo "SETUPTOOLS_SCM_PRETEND_VERSION=0.0.1" >> $GITHUB_ENV
118-
119-
- name: "Install pep517 and twine"
120-
run: "python -m pip install pep517 twine"
121-
- name: "Build package"
122-
run: "python -m pep517.build --source --binary ."
123-
- name: "List result"
124-
run: "ls -l dist"
125-
- name: "Check long_description"
126-
run: "python -m twine check dist/*"
127-
- name: "Publish package to TestPyPI"
128-
uses: "pypa/gh-action-pypi-publish@release/v1"
129-
if: "${{ env.DO_PUBLISH == 'yes' }}"
130-
with:
131-
user: "__token__"
132-
password: "${{ secrets.TEST_PYPI_API_TOKEN }}"
133-
repository_url: "https://test.pypi.org/legacy/"
134-
skip_existing: true
135-
136112
install-dev:
137113
strategy:
138114
matrix:

0 commit comments

Comments
 (0)