Skip to content

Several CI workflows additions and improvements. #5

Several CI workflows additions and improvements.

Several CI workflows additions and improvements. #5

Workflow file for this run

name: PyPI Deployment
# if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags'A
on:
push:
tags:
- v*
jobs:
testpypi:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v5
- name: Setup Python environment
uses: actions/setup-python@v6
with:
python-version: '3.x'
- name: Install development dependencies
uses: py-actions/py-dependency-install@v4.1.0
with:
path: "dev-requirements.txt"
- name: Build packages to be uploaded
run: python -m build
- name: pypi-publish
uses: pypa/gh-action-pypi-publish@v1.13.0
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
repository_url: https://test.pypi.org/legacy/