Skip to content

Commit 91bf042

Browse files
committed
FIX: More
1 parent cb25a42 commit 91bf042

3 files changed

Lines changed: 11 additions & 8 deletions

File tree

mne/tests/test_surface.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
# License: BSD-3-Clause
33
# Copyright the MNE-Python contributors.
44

5+
import os
56
from pathlib import Path
67

78
import numpy as np
@@ -252,6 +253,8 @@ def test_normal_orth():
252253
def test_marching_cubes(dtype, value, smooth, order):
253254
"""Test creating surfaces via marching cubes."""
254255
pytest.importorskip("pyvista")
256+
if os.getenv("MNE_CI_KIND") in ("conda", "mamba"):
257+
pytest.skip("VTK on conda CIs segfaults")
255258
data = np.zeros((50, 50, 50), dtype=dtype, order=order)
256259
data[20:30, 20:30, 20:30] = value
257260
level = [value]

tools/github_actions_env_vars.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
set -eo pipefail -x
2+
set -eo pipefail
33

44
# old and minimal use conda
55
if [[ "$MNE_CI_KIND" == "pip"* ]]; then
@@ -27,7 +27,7 @@ else # conda-like
2727
echo "MNE_LOGGING_LEVEL=warning" | tee -a $GITHUB_ENV
2828
echo "MNE_QT_BACKEND=PySide6" | tee -a $GITHUB_ENV
2929
# TODO: Also need "|unreliable on GitHub Actions conda" on macOS, but omit for now to make sure the failure actually shows up
30-
echo "MNE_TEST_ALLOW_SKIP=.*(Requires (spm|brainstorm) dataset|CUDA not|PySide6 causes segfaults|Accelerate|Flakey verbose behavior).*" | tee -a $GITHUB_ENV
30+
echo "MNE_TEST_ALLOW_SKIP=.*(Requires (spm|brainstorm) dataset|CUDA not|PySide6 causes segfaults|Accelerate|Flakey verbose behavior|VTK on conda).*" | tee -a $GITHUB_ENV
3131
# Our cache_dir test has problems when the path is too long, so prevent it from getting too long
3232
if [[ "$RUNNER_OS" == "macOS" ]]; then
3333
echo "PYTEST_DEBUG_TEMPROOT=/tmp" | tee -a $GITHUB_ENV

tools/github_actions_verify_python.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,24 @@
33
set -eo pipefail
44

55
GOT_PYTHON=$(which python)
6-
echo "Checking Python at:
7-
echo " which python=${GOT_PYTHON}
6+
echo "Checking Python found at:"
7+
echo " $(which python) == ${GOT_PYTHON}"
88
echo "for"
9-
echo " MNE_CI_KIND=${MNE_CI_KIND}"
9+
echo " \$MNE_CI_KIND == ${MNE_CI_KIND}"
1010
if [[ "${MNE_CI_KIND}" == "conda" ]] || [[ "${MNE_CI_KIND}" == "mamba" ]]; then
1111
WANT="micromamba/envs/mne"
1212
elif [[ "${MNE_CI_KIND}" == "old" ]]; then
1313
WANT="mne-python/mne-python/.venv/bin"
1414
elif [[ "${MNE_CI_KIND}" == "pip" ]] || [[ "${MNE_CI_KIND}" == "pip-pre" ]]; then
1515
WANT="hostedtoolcache/Python"
1616
else
17-
echo "ERROR: Unrecognized MNE_CI_KIND=${MNE_CI_KIND}"
17+
echo "ERROR: Unrecognized MNE_CI_KIND=${MNE_CI_KIND}"
1818
exit 1
1919
fi
2020
if [[ "${GOT_PYTHON}" != *"${WANT}"* ]]; then
21-
echo "ERROR: Did not find \"${WANT}\" from PATH:"
21+
echo "ERROR: Did not find \"${WANT}\" from PATH:"
2222
tr ':' '\n' <<< "$PATH"
2323
exit 1
2424
else
25-
echo "OK: Found expected \"${WANT}\""
25+
echo " Found expected \"${WANT}\""
2626
fi

0 commit comments

Comments
 (0)