* fix: [venmo] HTML element name change to btnLogin (#105) #157
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: Build | |
on: [push, pull_request] | |
jobs: | |
tox: | |
strategy: | |
matrix: | |
os: | |
- 'ubuntu-latest' | |
python-version: | |
- '3.7' | |
- '3.8' | |
- '3.9' | |
- '3.10' | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
# Need full history to determine version number. | |
fetch-depth: 0 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install Python packaging/test tools | |
run: python -m pip install tox wheel | |
- name: Show package version | |
run: python setup.py --version | |
- name: Test with tox | |
run: tox | |
- name: Build wheel | |
run: python setup.py bdist_wheel | |
- name: Upload wheels as artifacts | |
uses: actions/upload-artifact@v4 | |
if: ${{ runner.os == 'Linux' && matrix.python-version == '3.9' }} | |
with: | |
name: python-packages | |
path: | | |
dist/*.whl | |
dist/*.tar.gz | |
python-publish-package: | |
# Only publish package on push to tag or default branch. | |
if: ${{ github.event_name == 'push' && (startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/master') }} | |
runs-on: ubuntu-latest | |
needs: | |
- tox | |
steps: | |
- uses: actions/download-artifact@v4.1.7 | |
with: | |
name: python-packages | |
path: dist | |
- name: Publish to PyPI (test server) | |
uses: pypa/gh-action-pypi-publish@54b39fb9371c0b3a6f9f14bb8a67394defc7a806 # 2020-09-25 | |
with: | |
user: __token__ | |
password: ${{ secrets.pypi_test_token }} | |
repository_url: https://test.pypi.org/legacy/ | |
if: ${{ ! startsWith(github.ref, 'refs/tags/v') }} | |
- name: Publish to PyPI (main server) | |
uses: pypa/gh-action-pypi-publish@54b39fb9371c0b3a6f9f14bb8a67394defc7a806 # 2020-09-25 | |
with: | |
user: __token__ | |
password: ${{ secrets.pypi_token }} | |
if: ${{ startsWith(github.ref, 'refs/tags/v') }} |