Skip to content

Merge pull request #33 from ioxiocom/feature/optional_skip_cleanup #22

Merge pull request #33 from ioxiocom/feature/optional_skip_cleanup

Merge pull request #33 from ioxiocom/feature/optional_skip_cleanup #22

Workflow file for this run

name: Build and upload to PyPI
on:
push:
tags:
- "*"
jobs:
build_and_upload:
name: Build and upload
runs-on: ubuntu-latest
steps:
- name: Checkout πŸ”
uses: actions/checkout@v3
- name: Set up Python 🐍
uses: actions/setup-python@v4
with:
python-version: "3.9"
- name: Install Poetry and pre-commit πŸ’ˆ
run: pip install poetry pre-commit
- name: Install dependencies πŸ› 
run: poetry install
- name: Run pre-commit πŸ€”
run: pre-commit run --all-files
- name: Run tests 🌈
run: poetry run invoke test
- name: Publish package to PyPI πŸ™Œ
run: |
set -e
poetry config http-basic.pypi "__token__" "${PYPI_TOKEN}"
poetry publish --build
env:
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}