Skip to content

Release v1.4.0

Release v1.4.0 #30

Workflow file for this run

name: Publish to PyPI
on:
push:
tags:
- "v*.*.*"
jobs:
lint:
name: Run autopep8
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.10'
- name: Install test dependencies
uses: BSFishy/pip-action@v1
with:
packages: |
autopep8
isort
- name: Check code with autopep8
run: autopep8 --exit-code --diff --max-line-length 140 --recursive .
- name: Check code with isort
run: isort --profile black . --check-only
deploy:
name: Deploy to PyPI
runs-on: ubuntu-latest
needs:
- lint
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.10'
- name: Install poetry
uses: Gr1N/setup-poetry@v8
- name: Build package
run: poetry build
- name: Publish to PyPI
run: poetry publish -u __token__ -p ${{ secrets.PYPI_TOKEN }}
- name: Upload workflow artifact
uses: actions/upload-artifact@v3
with:
name: bk7231tools
path: |
dist/*.whl
dist/*.tar.gz