Skip to content

Commit

Permalink
fix: Call removeEnvironmentFromAutoActivate in post setup (#198)
Browse files Browse the repository at this point in the history
  • Loading branch information
delsner committed Feb 21, 2024
1 parent 93692ee commit 4225001
Show file tree
Hide file tree
Showing 6 changed files with 263 additions and 203 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/test-post-cleanup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,25 @@ jobs:
include:
- post-cleanup: 'none'
mamba-init-block-exists: ''
mamba-activate-exists: ''
env-exists: ''
root-exists: ''
binary-exists: ''
- post-cleanup: 'shell-init'
mamba-init-block-exists: '! '
mamba-activate-exists: '! '
env-exists: ''
root-exists: ''
binary-exists: ''
- post-cleanup: 'environment'
mamba-init-block-exists: '! '
mamba-activate-exists: '! '
env-exists: '! '
root-exists: ''
binary-exists: ''
- post-cleanup: 'all'
mamba-init-block-exists: '! '
mamba-activate-exists: '! '
env-exists: '! '
root-exists: '! '
binary-exists: '! '
Expand All @@ -43,6 +47,7 @@ jobs:
set -euxo pipefail
${{ matrix.mamba-init-block-exists }}grep -F "mamba initialize" ~/.bash_profile
${{ matrix.mamba-init-block-exists }}grep -F "mamba initialize" ~/.bashrc
${{ matrix.mamba-activate-exists }}grep -F "mamba activate" ~/.bash_profile
${{ matrix.env-exists }}test -d ~/micromamba/envs/env-name
${{ matrix.root-exists }}test -d ~/micromamba
${{ matrix.binary-exists }}test -f ~/micromamba-bin/micromamba
Expand All @@ -56,6 +61,7 @@ jobs:
set -euxo pipefail
grep -F "mamba initialize" ~/.bash_profile
grep -F "mamba initialize" ~/.bashrc
grep -F "mamba activate" ~/.bash_profile
test -d ~/micromamba/envs/env-name
test -d ~/micromamba
test -f ~/micromamba-bin/micromamba
Expand Down
24 changes: 6 additions & 18 deletions dist/licenses.txt

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 4225001

Please sign in to comment.