👷 Build for many python versions #2
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: conda_publish | |
on: | |
push: | |
paths: | |
- 'meta.yaml' | |
- '.github/workflows/conda-publish.yml' | |
jobs: | |
publish: | |
name: ${{ matrix.runs-on }} | |
runs-on: ${{ matrix.runs-on }} | |
defaults: | |
run: | |
shell: bash -l {0} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu, macos] | |
include: | |
- os: ubuntu | |
runs-on: ubuntu-latest | |
conda-bld: linux-64 | |
- os: macos | |
runs-on: macos-latest | |
conda-bld: osx-64 | |
steps: | |
- name: checkout repository | |
uses: actions/checkout@v4 | |
- name: create environment with mamba | |
uses: conda-incubator/setup-miniconda@v3 | |
with: | |
mamba-version: "*" | |
channels: conda-forge,bioconda,defaults | |
auto-activate-base: false | |
activate-environment: qsarpackage | |
environment-file: environment.yml | |
- name: check env | |
run: | | |
mamba env export | |
- name: conda build | |
run: | | |
for pyv in 3.7 3.8 3.9 3.10 3.11 3.12; do | |
conda build -c conda-forge -c defaults -c bioconda --python $pyv --output-folder . . | |
done | |
- name: anaconda upload | |
run: | | |
export ANACONDA_API_TOKEN=${{ secrets.CONDA_HELITONMRF_TOKEN }} | |
anaconda upload --label dev ${{matrix.conda-bld}}/*.tar.bz2 |