Skip to content

Commit

Permalink
use condat activate
Browse files Browse the repository at this point in the history
  • Loading branch information
peterdudfield committed Nov 3, 2023
1 parent 268f751 commit a824dfb
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/conda-pytest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,14 @@ jobs:

- 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
18 changes: 18 additions & 0 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Python package tests

on:
push:
schedule:
- cron: "0 12 * * 1"
jobs:
call-run-python-tests:
uses: openclimatefix/.github/.github/workflows/python-test.yml@main
with:
# 0 means don't use pytest-xdist
pytest_numcpus: "4"
# pytest-cov looks at this folder
pytest_cov_dir: "pvnet_app"
# extra things to install
sudo_apt_install: "libgeos++-dev libproj-dev proj-data proj-bin esmf"
# brew_install: "proj geos librttopo"
os_list: '["ubuntu-latest"]'

0 comments on commit a824dfb

Please sign in to comment.