Skip to content

trying to fix bug introduced by bmt/linkml changes to annotations #35

trying to fix bug introduced by bmt/linkml changes to annotations

trying to fix bug introduced by bmt/linkml changes to annotations #35

Workflow file for this run

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 }}