v0.0.26 #24
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: Upload to Anaconda.org | |
on: | |
release: | |
types: [published] | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- name: publish-to-conda | |
uses: MichaelsJP/conda-package-publish-action@v1.1.0 | |
with: | |
subDir: 'conda' | |
AnacondaToken: ${{ secrets.ANACONDA_TOKEN }} | |
build: | |
needs: deploy | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest] | |
python-version: ["3.7", "3.8", "3.9", "3.10"] | |
# Do not ignore bash profile files. From: | |
# https://github.com/marketplace/actions/setup-miniconda | |
defaults: | |
run: | |
shell: bash -l {0} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: conda-incubator/setup-miniconda@v2 | |
with: | |
miniconda-version: "latest" | |
channels: bioconda, conda-forge, defaults | |
use-only-tar-bz2: true | |
auto-update-conda: true | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
conda install pytest>=7 | |
- name: Install plons from Anaconda.org | |
run: | | |
conda install -c ensor plons | |
- name: Test with pytest | |
run: | | |
pytest |