From 09a27469d8a119c8d5465f691649309407f433c3 Mon Sep 17 00:00:00 2001 From: Jack Greenlee Date: Thu, 19 Dec 2024 23:05:02 -0500 Subject: [PATCH] fix EnvironmentLocationNotFound error during test-with-manual-install "Teardown the test environment" has been consistently failing. ``` Run source setup/teardown_tests.sh Removing environment from CondaError: Run 'conda init' before 'conda deactivate' EnvironmentLocationNotFound: Not a conda environment: /usr/share/miniconda/envs/emissiontest Error: Process completed with exit code 1. ``` I noticed that test-with-manual-install.yml follows a similar teardown procedure (with 'emission' as the environment instead of 'emissiontest') I saw that test-with-manual-install.yml invokes activates_conda.sh again right before calling the teardown script --- .github/workflows/test-with-manual-install.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test-with-manual-install.yml b/.github/workflows/test-with-manual-install.yml index 4a81eb000..bfb8b530b 100644 --- a/.github/workflows/test-with-manual-install.yml +++ b/.github/workflows/test-with-manual-install.yml @@ -70,4 +70,6 @@ jobs: - name: Teardown the test environment shell: bash -l {0} - run: source setup/teardown_tests.sh + run: | + source setup/activate_conda.sh + source setup/teardown_tests.sh