Skip to content

Publish to PyPI: tag v1.2.1 #7

Publish to PyPI: tag v1.2.1

Publish to PyPI: tag v1.2.1 #7

Workflow file for this run

name: Publish to PyPI
run-name: "Publish to PyPI: ${{ github.ref_type }} ${{ github.ref_name }}"
on:
release:
types: [published]
jobs:
upload_pypi:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: 3.12
- name: Install dependencies
run: |
python -m pip install -r requirements.txt
- name: Test
run: |
python -m pytest
- name: Build
run: |
python3 -m pip install --upgrade build && python3 -m build
- name: Publish package
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}