Merge pull request #89 from gbouras13/1.0.1 #16
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: Release | |
on: | |
push: | |
tags: | |
- '*.*.*' | |
jobs: | |
build-n-publish: | |
name: Build and publish to PyPI | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: conda-incubator/setup-miniconda@v3 | |
with: | |
python-version: 3.9 | |
activate-environment: dnaapler | |
environment-file: build/environment.yaml | |
auto-activate-base: false | |
channels: conda-forge,bioconda,defaults | |
channel-priority: strict | |
auto-update-conda: true | |
- name: Install project | |
shell: bash -l {0} | |
run: | | |
python -m pip install -U pip | |
pip install -e . | |
pip install black | |
pip install isort | |
pip install pytest | |
pip install pytest-cov | |
- name: Build a binary wheel and a source tarball | |
shell: bash -l {0} | |
run: just build | |
- name: Publish to PyPI | |
uses: pypa/gh-action-pypi-publish@master | |
with: | |
user: __token__ | |
password: ${{ secrets.PYPI_TOKEN }} |