Update README.md #3
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: Package, test, and publish | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- release* | |
- master | |
jobs: | |
build_test_publish: | |
runs-on: ubuntu-latest | |
if: "!contains(github.event.head_commit.message, '***SKIPBUILD***')" | |
strategy: | |
max-parallel: 1 | |
matrix: | |
python-version: [ '3.7' ] | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v2 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Config github user | |
run: | | |
git config --global user.email "[email protected]" | |
git config --global user.name "BambooUser-IDM" | |
- uses: actions/setup-python@master | |
with: | |
python-version: ${{ matrix.python-version }} | |
architecture: x64 | |
- name: install snappy | |
run: sudo apt-get install libsnappy-dev | |
shell: bash | |
- id: build-install | |
name: Build and install package | |
uses: ./.github/actions/build-install-package | |
with: | |
package_file: 'setup.py' | |
- name: run unit tests | |
run: | | |
pip install lz4 | |
python -m unittest discover . | |
working-directory: ./tests | |
- name: Push version bump | |
if: success() | |
run: git push | |
- name: twine upload | |
if: success() | |
run: twine upload --verbose --repository-url https://packages.idmod.org/api/pypi/idm-pypi-staging/ --username ${{ secrets.ARTIFACTORY_USER }} --password ${{ secrets.ARTIFACTORY_TOKEN }} ${{ steps.build-install.outputs.wheel-file }} | |
- name: Add wheel artifact | |
if: success() | |
uses: actions/upload-artifact@v2 | |
with: | |
name: emodpy-covid.wheel | |
path: ${{ steps.build-install.outputs.wheel-file }} | |