Skip to content

New tests, improving code coverage. (#105) #104

New tests, improving code coverage. (#105)

New tests, improving code coverage. (#105) #104

Workflow file for this run

name: pypi-on-master-push
on:
push:
branches:
- main
jobs:
bob-the-builder:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install flake8 pytest setuptools wheel twine build
pip install -e .
pip install -r requirements.txt
- name: Build binary wheel and a source tarball
run: |
python setup.py install
python setup.py bdist_wheel
- run: echo 'Tests successful. Publishing to PyPI now.'
- name: Build app for PyPI (Ubuntu)
env:
USERNAME: ${{ secrets.pypi_token }}
KEY: ${{ secrets.pypi_api }}
run: python -m twine upload --skip-existing -u $USERNAME -p $KEY dist/*