Skip to content

Add an extra item at the end of lifetime exercise for PHS3302 #150

Add an extra item at the end of lifetime exercise for PHS3302

Add an extra item at the end of lifetime exercise for PHS3302 #150

Workflow file for this run

name: Release
on: push
jobs:
test:
name: Deploy release to PyPI
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools wheel
pip install -r requirements.txt
- name: Get the version
id: get_version
run: |
export ref=${GITHUB_REF##*/}
echo 'GHA_TAG_VERSION='${ref} >> $GITHUB_ENV
- name: Get the SHA1 of the git commit
id: get_hash
run: echo 'GHA_GIT_COMMIT=${GITHUB_SHA}' >> $GITHUB_ENV
- name: Build package
run: |
python setup.py sdist
python setup.py bdist_wheel --universal
- name: Run tests
run: |
python -m pip install matplotlib
python -m pip install --no-index --find-links=dist monashspa
python -m monashspa.tests
- name: Publish package to main PyPI
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.PYPI_MASTER }}