Release v2.18.23 #71
Workflow file for this run
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
--- | |
name: Upload to PyPI | |
on: | |
push: | |
tags: | |
- v* | |
jobs: | |
tox: | |
runs-on: ubuntu-20.04 | |
strategy: | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: 3.7 | |
# GHA won't setup tox for us and we use tox-pip-extensions for venv-update | |
- run: pip install tox==3.2 tox-pip-extensions==1.3.0 | |
- run: make test | |
pypi: | |
# lets run tests before we push anything to pypi, much like we do internally | |
needs: tox | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: 3.7 | |
# GHA won't setup tox for us and we use tox-pip-extensions for venv-update | |
# and we need wheel for actually building wheels :p | |
- run: pip install tox==3.2 tox-pip-extensions==1.3.0 wheel | |
# this will create an sdist and wheel under dist/ | |
- run: python setup.py sdist bdist_wheel | |
# and then this uploads those artifacts to pypi | |
- uses: pypa/[email protected] | |
with: | |
password: ${{ secrets.pypi_password }} |