-
-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* added release.yml to automate release to pypi process, fixed long_description type (was causing error) * added release notes from pymc repo
- Loading branch information
1 parent
831a894
commit f554df1
Showing
3 changed files
with
73 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# This file contains configuration for the automatic generation of release notes in GitHub. | ||
# It's not perfect, but it makes it a little less laborious to write informative release notes. | ||
# Also see https://docs.github.com/en/repositories/releasing-projects-on-github/automatically-generated-release-notes | ||
changelog: | ||
exclude: | ||
labels: | ||
- no releasenotes | ||
categories: | ||
- title: Major Changes 🛠 | ||
labels: | ||
- major | ||
- title: New Features 🎉 | ||
labels: | ||
- enhancements | ||
- feature request | ||
- title: Bugfixes 🪲 | ||
labels: | ||
- bug | ||
- title: Documentation 📖 | ||
labels: | ||
- docs | ||
- title: Maintenance 🔧 | ||
labels: | ||
- "*" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: release-pipeline | ||
|
||
on: | ||
release: | ||
types: | ||
- created | ||
|
||
jobs: | ||
release-job: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.7 | ||
- name: Install release tools | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install setuptools wheel twine | ||
- name: Build distribution 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/v1.2.3" | ||
# Make sure the package version is the same as the tag | ||
grep -Rq "^Version: ${GITHUB_REF:11}$" pymc.egg-info/PKG-INFO | ||
- name: Publish to PyPI | ||
env: | ||
TWINE_USERNAME: __token__ | ||
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN_PYMC }} | ||
run: | | ||
twine check dist/* | ||
twine upload --repository pypi --username __token__ --password ${PYPI_TOKEN} dist/* | ||
test-install-job: | ||
needs: release-job | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.7 | ||
- name: Give PyPI a chance to update the index | ||
run: sleep 240 | ||
- name: Install from PyPI | ||
run: | | ||
pip install pymc-experimental==${GITHUB_REF:11} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters