use condat activate #4
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 | |
- name: Install the repo | |
run: | | |
conda create -n test python=3.10 -y | |
conda activate test | |
conda install -c conda-forge xesmf esmpy -y | |
export ESMFMKFILE='/usr/share/miniconda/lib/esmf.mk' | |
pip install -e . | |
- name: run pytest | |
run: | | |
conda activate test | |
which python | |
python -m pytest |