WIP: commit pending changes #5
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: Master Deploy | |
on: | |
push: | |
branches: | |
- 'master' | |
permissions: | |
contents: write | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v3 | |
with: | |
python-version: '3.7' | |
- name: Install dependencies and test | |
run: | | |
python -m pip install pip==22.2.2 setuptools==65.3.0 wheel==0.37.1 | |
pip install poetry==1.1.15 | |
poetry install | |
poetry run coverage run -m pytest | |
- name: Generate Documentation | |
run: | | |
poetry run coverage html -d docs/coverage | |
poetry run pdoc --html --force deeprecsys -o docs/api | |
- name: Version Bump | |
run: | | |
poetry version patch | |
git config --global user.name 'Github Actions' | |
git config --global user.email '[email protected]' | |
git commit -am "Bump to version $(poetry version -s)" | |
git push | |
- name: Build package and publish | |
run: | | |
poetry build | |
poetry config pypi-token.pypi ${{ secrets.PYPI_KEY }} | |
poetry publish |