Merge pull request #117 from tarioch/bugfix/nordigen_transaction_id_o⦠#514
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: Publish Python π distributions π¦ to PyPI and TestPyPI | |
on: | |
push: | |
pull_request: | |
release: | |
types: [published] | |
jobs: | |
build-and-publish: | |
name: Build and publish Python π distributions π¦ to PyPI and TestPyPI | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: 3.x | |
- name: Install tox | |
run: >- | |
pip install tox | |
- name: Pre Commit | |
run: >- | |
tox -e pre-commit | |
- name: Test | |
run: >- | |
tox | |
- name: Build | |
run: >- | |
tox -e build | |
- name: Publish distribution π¦ to Test PyPI | |
if: contains(github.ref, 'refs/heads/master') | |
env: | |
TWINE_USERNAME: __token__ | |
TWINE_PASSWORD: ${{ secrets.test_pypi_password }} | |
TWINE_REPOSITORY_URL: https://test.pypi.org/legacy/ | |
run: >- | |
tox -e publish | |
- name: Publish distribution π¦ to PyPI | |
if: contains(github.ref, 'refs/tags/v') | |
env: | |
TWINE_USERNAME: __token__ | |
TWINE_PASSWORD: ${{ secrets.pypi_password }} | |
TWINE_REPOSITORY_URL: https://upload.pypi.org/legacy/ | |
run: >- | |
tox -e publish -- --repository pypi |