Skip to content

Commit 28e545a

Browse files
committed
update unit testing to setup conda environment from the testing.yml
1 parent 9170d50 commit 28e545a

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

.github/workflows/unittest-ctsm.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Run fates unit tests with ctsm as the host land model
1+
name: Run fates unit tests with ctsm as the hos land model
22

33
on:
44
pull_request:
@@ -15,18 +15,25 @@ jobs:
1515
steps:
1616
- name: Checkout code with git-fleximod
1717
run: |
18+
cd /CTSM
1819
./git-fleximod update
1920
20-
- name: Run fates unit tests
21+
- name: Set up conda environment
22+
uses: conda-incubator/setup-miniconda@v2
23+
with:
24+
activate-environment: testing
25+
environment-file: testing/testing.yml
26+
channels: conda-forge, defaults
27+
28+
- name: Activate spack environment and run tests
2129
run: |
2230
. /opt/spack-environment/activate.sh
23-
python -m pip install matplotlib
2431
echo "HOSTNAME: $HOSTNAME"
2532
echo "HOME: $HOME"
2633
echo "CIMEROOT: $CIMEROOT"
2734
echo "NETCDF_FORTRAN_PATH: $NETCDF_FORTRAN_PATH"
2835
echo "NETCDF_C_PATH: $NETCDF_C_PATH"
2936
cd testing/
30-
python run_unit_tests.py --make-j 2 --test-list all
37+
python run_unit_tests.py --test-list fire_fuel
3138
3239

0 commit comments

Comments
 (0)