Conda Package Dependencies #7
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 Package Dependencies | |
on: | |
workflow_dispatch | |
jobs: | |
build: | |
name: ${{ matrix.recipe }} for py${{ matrix.python }} on ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
env: | |
ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_TOKEN }} | |
defaults: | |
run: | |
shell: bash -l {0} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ ubuntu-latest, windows-latest, macos-latest ] | |
python: [ '3.8', '3.9', '3.10', '3.11' ] | |
recipe: [ 'tardis-client', 'tardis-dev', 'ray' ] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup miniconda3 | |
uses: conda-incubator/setup-miniconda@v2 | |
with: | |
miniconda-version: "latest" | |
auto-update-conda: true | |
python-version: ${{ matrix.python }} | |
activate-environment: test | |
channels: conda-forge, mesonomics | |
- name: configure recipe conda environment | |
run: | | |
conda create -n recipe python=${{ matrix.python }} | |
conda install -y -n recipe conda-build anaconda-client | |
- name: conda info | |
run: | | |
conda info | |
conda list | |
- name: conda build for ${{ matrix.os }} | |
run: | | |
conda activate recipe | |
conda build --output-folder . -c conda-forge --python ${{ matrix.python }} conda/${{ matrix.recipe }} | |
- name: upload windows | |
if: ${{ matrix.os == 'windows-latest' }} | |
run: | | |
conda activate recipe | |
anaconda upload win-64/*.tar.bz2 | |
- name: upload linux | |
if: ${{ matrix.os == 'ubuntu-latest' }} | |
run: | | |
conda activate recipe | |
anaconda upload linux-64/*.tar.bz2 | |
- name: upload macos | |
if: ${{ matrix.os == 'macos-latest' }} | |
run: | | |
conda activate recipe | |
anaconda upload osx-64/*.tar.bz2 |