Bmt update (#7) #38
Workflow file for this run
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
name: pypi | |
on: push | |
jobs: | |
build-n-publish: | |
name: Build and publish Python π distributions π¦ to PyPI and TestPyPI | |
runs-on: ubuntu-22.04 | |
strategy: | |
matrix: | |
bmt_version: | |
# commenting out erroring version of BL that are validated erroneous by BMT (bmt==0.8.2) | |
# - '1.7.0' | |
# - '1.8.0' | |
# - '1.8.1' | |
# - '1.8.2' | |
# - '2.0.0' | |
# - '2.0.1' | |
# - '2.0.2' | |
# - '2.1.0' | |
# - '2.2.0' | |
# - '2.2.1' | |
# - '2.2.2' | |
# - '2.2.3' | |
# - '2.2.4' | |
# - '2.2.5' | |
# the following ones should work but aren't really needed so commenting out for now | |
# - 'v2.3.0' | |
# - 'v2.3.1' | |
# - 'v2.4.0' | |
# - 'v2.4.1' | |
# - 'v2.4.2' | |
# - 'v2.4.3' | |
# - 'v2.4.5' | |
# - 'v2.4.6' | |
# - 'v2.4.7' | |
# - 'v2.4.8' | |
# - 'v3.0.0' | |
# - 'v3.0.1' | |
# - 'v3.0.2' | |
# - 'v3.0.3' | |
# - 'v3.1.0' | |
- 'v3.6.0' | |
# - 'v4.0.0' | |
steps: | |
- uses: actions/checkout@master | |
- name: Set up Python 3.9 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.9 | |
- name: Install setuptools and wheel | |
run: >- | |
python -m | |
pip install | |
-r requirements-build.txt | |
--user | |
- name: Build a binary wheel and a source tarball | |
run: >- | |
python | |
setup.py | |
sdist bdist_wheel | |
--v${{ matrix.bmt_version }} | |
- name: Publish distribution π¦ to Test PyPI | |
uses: pypa/gh-action-pypi-publish@release/v1 | |
with: | |
password: ${{ secrets.test_pypi_api_token }} | |
repository_url: https://test.pypi.org/legacy/ | |
skip_existing: true | |
- name: Publish distribution π¦ to PyPI | |
if: startsWith(github.ref, 'refs/tags') | |
uses: pypa/gh-action-pypi-publish@release/v1 | |
with: | |
password: ${{ secrets.pypi_api_token }} |