Skip to content

v0.0.1

v0.0.1 #1

Workflow file for this run

name: 📦️Upload PyPi Package
on:
release:
types: [published]
workflow_dispatch:
permissions:
contents: read
jobs:
publish:
runs-on: ubuntu-latest
strategy:
max-parallel: 1
matrix:
python-version: ["3.8"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run Tests
run: |
python3 -m pytest tests/
- name: Install poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
- name: Build distribution
run: |
poetry build
- name: Publish distribution to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}