Skip to content

Commit 0d4e8a4

Browse files
author
chadcarlson
committed
Test all but publish.
1 parent c9ac9b3 commit 0d4e8a4

1 file changed

Lines changed: 13 additions & 6 deletions

File tree

.github/workflows/pypi-publish.yaml

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,20 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- uses: actions/checkout@v2
12+
- name: Setup Python 3.7
13+
uses: actions/setup-python@v1
14+
with:
15+
python-version: 3.7
16+
- name: Prep package
17+
run: python -m pip install --upgrade pipenv wheel
18+
- run: pipenv install
19+
- run: pipenv run "pytest"
1220
- name: Get tag
1321
id: vars
1422
run: echo ::set-output name=tag::${GITHUB_REF#refs/*/}
15-
- if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
23+
- name: Verify tag match
1624
env:
17-
GHACTION_TAG: ${{ steps.vars.outputs.tag }}
18-
uses: pypa/gh-action-pypi-publish@v1.4.1
19-
with:
20-
user: __token__
21-
password: ${{ secrets.PYPI_API_TOKEN }}
25+
GHACTION_TAG: ${{ steps.vars.outputs.tag }}
26+
run: pipenv run python setup.py verify
27+
- name: Create packages
28+
run: pipenv run python setup.py sdist bdist_wheel

0 commit comments

Comments
 (0)