Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix cmd.exe tests #56

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,18 +29,22 @@ jobs:
python -c "import numpy"
echo "MAMBA_EXE=$Env:MAMBA_EXE"
python test/test_path.py
python -c "import os; env = os.path.basename(os.environ['CONDA_PREFIX']); assert env == 'testenv'"
if: runner.os == 'Windows'

- name: run python in cmd.exe
shell: cmd /C call {0}
run: |
where micromamba
micromamba info
:: For some reason running the "micromamba" binary here breaks the action?!
:: See https://github.com/mamba-org/provision-with-micromamba/pull/56
:: micromamba info
which python
python -VV
python -c "import numpy"
echo "MAMBA_EXE=%MAMBA_EXE%"
python test/test_path.py
python -c "import os; env = os.path.basename(os.environ['CONDA_PREFIX']); assert env == 'testenv'" || exit /b
if: runner.os == 'Windows'

- name: run python in bash
Expand All @@ -53,6 +57,7 @@ jobs:
python -c "import numpy"
echo "MAMBA_EXE=$MAMBA_EXE"
python test/test_path.py
python -c "import os; env = os.path.basename(os.environ['CONDA_PREFIX']); assert env == 'testenv'"

# - name: run python in zsh
# shell: zsh -l {0}
Expand Down
38 changes: 0 additions & 38 deletions .github/workflows/test_bash.yml

This file was deleted.