Skip to content

Commit

Permalink
Use build-and-inspect-python to verify the dist
Browse files Browse the repository at this point in the history
  • Loading branch information
offbyone committed Aug 20, 2022
1 parent 41fac8c commit 5504e79
Showing 1 changed file with 1 addition and 25 deletions.
26 changes: 1 addition & 25 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,35 +104,11 @@ jobs:
with:
# We want our tags here
fetch-depth: 0
- uses: hynek/[email protected]
- uses: "actions/setup-python@v4"
with:
python-version: "3.10"

- name: Check if we have the publish key
env:
TEST_PYPI_API_TOKEN: ${{ secrets.TEST_PYPI_API_TOKEN }}
if: "${{ env.TEST_PYPI_API_TOKEN != '' }}"
run: |
echo "DO_PUBLISH=yes" >> $GITHUB_ENV
echo "SETUPTOOLS_SCM_PRETEND_VERSION=0.0.1" >> $GITHUB_ENV
- name: "Install pep517 and twine"
run: "python -m pip install pep517 twine"
- name: "Build package"
run: "python -m pep517.build --source --binary ."
- name: "List result"
run: "ls -l dist"
- name: "Check long_description"
run: "python -m twine check dist/*"
- name: "Publish package to TestPyPI"
uses: "pypa/gh-action-pypi-publish@release/v1"
if: "${{ env.DO_PUBLISH == 'yes' }}"
with:
user: "__token__"
password: "${{ secrets.TEST_PYPI_API_TOKEN }}"
repository_url: "https://test.pypi.org/legacy/"
skip_existing: true

install-dev:
strategy:
matrix:
Expand Down

0 comments on commit 5504e79

Please sign in to comment.