Skip to content

Commit 59ea92e

Browse files
committed
FIX: Kind
1 parent 5571053 commit 59ea92e

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#!/bin/bash -ef
2+
3+
set -eo pipefail
4+
5+
GOT_PYTHON=$(which python)
6+
echo "Checking Python at:
7+
echo " which python=${GOT_PYTHON}
8+
echo "for"
9+
echo " MNE_CI_KIND=${MNE_CI_KIND}"
10+
if [[ "${MNE_CI_KIND}" == "conda" ]] || [[ "${MNE_CI_KIND}" == "mamba" ]]; then
11+
WANT="micromamba/envs/mne"
12+
elif [[ "${MNE_CI_KIND}" == "old" ]]; then
13+
WANT="mne-python/mne-python/.venv/bin"
14+
elif [[ "${MNE_CI_KIND}" == "pip" ]] || [[ "${MNE_CI_KIND}" == "pip-pre" ]]; then
15+
WANT="hostedtoolcache/Python"
16+
else
17+
echo "ERROR: Unrecognized MNE_CI_KIND=${MNE_CI_KIND}"
18+
exit 1
19+
fi
20+
if [[ "${GOT_PYTHON}" != *"${WANT}"* ]]; then
21+
echo "ERROR: Did not find \"${WANT}\""
22+
exit 1
23+
else
24+
echo "OK: Found expected \"${WANT}\""
25+
fi

0 commit comments

Comments
 (0)