Skip to content

0.9: update versions #12

0.9: update versions

0.9: update versions #12

Workflow file for this run

name: release
on:
push:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: 3.11
- name: Install dependencies
run: |
python3 -m pip install --upgrade pip poetry
poetry config virtualenvs.create false
poetry install
- name: Check codestyle
run: |
black --check .
isort --check-only -rc .
- name: Run tests
run: pytest -v tests
- name: Build package
run: poetry build
- name: Build docs
run: cd docs && make html
- name: Release to PyPI
env:
TWINE_USERNAME: ${{ secrets.PYPI_USER }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: twine upload --verbose dist/* || echo 'File exists'