Skip to content

v0.0.1-dev

v0.0.1-dev #3

Workflow file for this run

name: PyPI-publish
on:
release:
types: [published]
jobs:
# This workflow contains a single job called "build"
build:
runs-on: 'ubuntu-latest'
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v3
- name: "Set up Python"
uses: actions/setup-python@v3
with:
python-version: '3.9'
- name: "Install flake8"
run: |
pip install flake8
- name: "Lint with flake8"
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: "Install dependencies"
run: |
python -m pip install --upgrade pip
pip install poetry
poetry install
# - name: "Test with pytest"
# shell: bash -l {0}
# run: |
# poetry run pytest -s
- name: Build package
shell: bash -l {0}
run: |
python -m build
- name: Publish package
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN }}