Added pypi publishing. Added docs. Fixed mypy. Added tox testing.

This commit is contained in:
simleek
2019-11-09 22:00:43 -07:00
parent 1b4818edad
commit 2c870ac603
83 changed files with 19617 additions and 97 deletions
+21 -9
View File
@@ -3,7 +3,7 @@ name: Python package
on: [push]
jobs:
build:
build-and-publish:
runs-on: windows-latest
strategy:
@@ -13,11 +13,23 @@ jobs:
python-version: [3.6, 3.7]
steps:
- uses: actions/checkout@v1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- uses: dschep/install-poetry-action@v1.2
- run: poetry install
- run: poetry run pytest tests
- uses: actions/checkout@v1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- uses: dschep/install-poetry-action@v1.2
- name: Install dependencies
- run: poetry install
- name: Test with tox
- run: tox -p auto -o
- name: Publish distribution 📦 to Test PyPI
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.test_pypi_password }}
repository_url: https://test.pypi.org/legacy/
- name: Publish distribution 📦 to PyPI
if: startsWith(github.event.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.pypi_password }}