forked from hamcrest/PyHamcrest
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use build-and-inspect-python to verify the dist
- Loading branch information
Showing
1 changed file
with
1 addition
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | ||
|