Skip to content

Commit

Permalink
fix EnvironmentLocationNotFound error during test-with-manual-install
Browse files Browse the repository at this point in the history
"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
  • Loading branch information
JGreenlee committed Dec 20, 2024
1 parent 4034533 commit 09a2746
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/test-with-manual-install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 09a2746

Please sign in to comment.