Unverified Commit 2469ce59 authored by Michael Osthege's avatar Michael Osthege Committed by GitHub

Add release pipeline GitHub Action (#3954)

* add long description content type
* bump to 3.9.0
* add GitHub release pipeline definition
* be conservative while waiting for PyPI
* address TODOs to make merge-ready
parent 8274b91b
name: release-pipeline
on:
release:
types:
- created
jobs:
release-job:
runs-on: ubuntu-latest
env:
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: 3.7
# TODO: ideally, this pipeline should run parallelized tests in upstream jobs..
#- name: Install test tooling
# run: |
# pip install pytest pytest-cov nose nose-parameterized
# pip install -r requirements.txt
#- name: Run tests
# run: |
# pytest --cov=./pymc3 --cov-report term-missing pymc3/
- name: Install release tooling
run: |
pip install twine wheel
- name: Build package
run: |
python setup.py sdist bdist_wheel
- name: Check version number match
run: |
echo "GITHUB_REF: ${GITHUB_REF}"
# The GITHUB_REF should be something like "refs/tags/v3.x.x"
# Make sure the package version is the same as the tag
grep -Rq "^Version: ${GITHUB_REF:11}$" pymc3.egg-info/PKG-INFO
- name: Publish to PyPI
run: |
twine check dist/*
twine upload --repository pypi --username __token__ --password ${PYPI_TOKEN} dist/*
test-install-job:
needs: release-job
runs-on: ubuntu-latest
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: 3.7
- name: Give PyPI a chance to update the index
run: sleep 240
- name: Install from PyPI
run: |
pip install pymc3==${GITHUB_REF:11}
......@@ -13,7 +13,7 @@
# limitations under the License.
# pylint: disable=wildcard-import
__version__ = "3.8"
__version__ = "3.9.0"
import logging
import multiprocessing as mp
......
......@@ -69,6 +69,7 @@ if __name__ == "__main__":
license=LICENSE,
url=URL,
long_description=LONG_DESCRIPTION,
long_description_content_type='text/x-rst',
packages=find_packages(),
package_data={'docs': ['*']},
include_package_data=True,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment