Skip to content

2.4

2.4 #23

Workflow file for this run

name: Upload Python Package to PyPI
on:
release:
types: [published]
permissions:
contents: read
id-token: write
jobs:
deploy:
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/pysgconnect
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Run unit-tests
run: |
python -m pip install pip --upgrade
python -m pip install -r requirements.txt
python -m pytest -vvv
- name: Install dependencies and build package
run: |
python -m build
- name: Publish package
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}