Conda Test #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 Test | |
on: | |
workflow_dispatch | |
jobs: | |
build_wheels: | |
name: 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 ] | |
python: [ '3.7', '3.8', '3.9', '3.10' ] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup miniconda3 | |
uses: conda-incubator/setup-miniconda@v2 | |
with: | |
miniconda-version: "latest" | |
auto-update-conda: true | |
channel-priority: strict | |
mamba-version: "*" | |
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 boa | |
- name: conda build for ${{ matrix.os }} | |
run: | | |
conda activate recipe | |
conda mambabuild --output-folder . --python ${{ matrix.python }} conda/zipline-tardis-bundle | |
- name: create local channel | |
run: | | |
mkdir -p /tmp/channel/linux64 | |
cp linux64/zipline-tardis-bundle*.tar.bz2 /tmp/channel | |
- name: install zipline-tardis-bundle into test environment | |
run: | | |
conda index /tmp/channel | |
conda activate test | |
conda install -y --override-channels -c file:///tmp/channel -c mesonomics -c conda-forge zipline-tardis-bundle |