Skip to content

Compatibility with latest versions of scipy #112

Compatibility with latest versions of scipy

Compatibility with latest versions of scipy #112

Workflow file for this run

# This file is based on the instructions in
# https://packaging.python.org/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/
# The push to PyPI only happens for commits with a tag. This is done
# because PyPI and TestPyPI will not let you upload files with the
# same name as previous files. So, new files will only be accepted if
# the version number has increased.
name: Publish python distribution to PyPI
on: push
jobs:
build-and-publish:
name: Build and publish python distributions to PyPI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install wheel
run: pip install wheel
- name: Build a binary wheel and a source tarball
run: python3 setup.py sdist bdist_wheel
- name: Publish distribution to TestPyPI
#if: startsWith(github.ref, 'refs/tags')
if: "contains(github.event.head_commit.message, 'version bump')"
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.test_pypi_password }}
repository_url: https://test.pypi.org/legacy/
- name: Publish distribution to PyPI
#if: startsWith(github.ref, 'refs/tags')
if: "contains(github.event.head_commit.message, 'version bump')"
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.pypi_password }}