uses: conda-incubator/setup-miniconda@v2 #10
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: Conda pytest | |
on: push | |
jobs: | |
push_to_registry: | |
name: Build docker file for testing | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out the repo | |
uses: actions/checkout@v2 | |
- uses: conda-incubator/setup-miniconda@v2 | |
with: | |
miniconda-version: "latest" | |
channels: bioconda, conda-forge, defaults | |
auto-update-conda: true | |
auto-activate-base: true | |
- name: Install the conda | |
shell: bash -l {0} | |
run: | | |
conda install -c conda-forge xesmf esmpy -y | |
- name: Install the repo | |
shell: bash -l {0} | |
run: | | |
which python | |
pip install -e . | |
- name: run pytest | |
shell: bash -l {0} | |
run: | | |
conda init | |
export ESMFMKFILE='/usr/share/miniconda/lib/esmf.mk' | |
conda activate test | |
which python | |
python -m pytest |