diff --git a/.github/workflows/python-tests.yml b/.github/workflows/python-tests.yml index 79ad016da2..0be3a775b6 100644 --- a/.github/workflows/python-tests.yml +++ b/.github/workflows/python-tests.yml @@ -23,6 +23,13 @@ jobs: steps: # Checkout the code - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + with: + lfs: true + + # Check out cime because some unit tests import it + - name: Checkout cime submodule + run: | + bin/git-fleximod update cime # Set up the conda environment - uses: conda-incubator/setup-miniconda@2defc80cc6f4028b1780c50faf08dd505d698976 # v3 diff --git a/python/ctsm/run_ctsm_py_tests.py b/python/ctsm/run_ctsm_py_tests.py index 1205a448e2..472dea464a 100644 --- a/python/ctsm/run_ctsm_py_tests.py +++ b/python/ctsm/run_ctsm_py_tests.py @@ -5,6 +5,7 @@ """ import os +import sys import glob import argparse import logging @@ -53,7 +54,7 @@ def main(description): unit_testing.setup_for_tests(enable_critical_logs=args.debug) # Run the tests - pytest.main(pytest_args) + sys.exit(pytest.main(pytest_args)) def _commandline_args(description):