File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments