Skip to content

Refactoring for Python 3.12 #105

Refactoring for Python 3.12

Refactoring for Python 3.12 #105

Workflow file for this run

name: Check and Maybe Release Python Package
on: [push, pull_request]
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade setuptools setuptools-scm wheel twine toml
- name: Build package
run: |
python setup.py sdist bdist_wheel
python setup.py --version
twine check dist/*
- name: Publish to pypi
if: startsWith(github.event.ref, 'refs/tags')
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
twine upload dist/*