Skip to content

Minor adjustments and fixes #30

Minor adjustments and fixes

Minor adjustments and fixes #30

Workflow file for this run

name: Publish Python Package
on:
push:
branches:
- main
tags:
- 'v*'
paths-ignore:
- 'README.md'
- 'docs/**'
jobs:
build-and-publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
pip install -r requirements.txt
- name: Run tests
run: |
python -m unittest discover -s tests
- name: Build package
run: python setup.py sdist bdist_wheel
- name: Publish package
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}