Skip to content

Commit 8839d8d

Browse files
committed
FIX: Try again
1 parent fc44de9 commit 8839d8d

3 files changed

Lines changed: 7 additions & 5 deletions

File tree

azure-pipelines.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,6 @@ stages:
167167
displayName: Check Qt import
168168
- bash: |
169169
set -xeo pipefail
170-
python -m pip install "PySide6!=6.8.0,!=6.8.0.1,!=6.9.1"
171170
mne sys_info -pd
172171
mne sys_info -pd | grep "qtpy .* (PySide6=.*)$"
173172
export MNE_TEST_ALLOW_SKIP="^.*PySide6 causes segfaults.*$"
@@ -176,6 +175,7 @@ stages:
176175
displayName: PySide6
177176
- bash: |
178177
set -xeo pipefail
178+
python -m pip install PyQt6
179179
mne sys_info -pd
180180
mne sys_info -pd | grep "qtpy .* (PyQt6=.*)$"
181181
PYTEST_QT_API=PyQt6 pytest -m "not ultraslowtest" ${TEST_OPTIONS}

mne/gui/tests/test_gui_api.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,8 @@ def test_gui_api_qt(renderer_interactive_pyvistaqt):
384384
"""Test GUI API with the Qt backend."""
385385
from qtpy import API_NAME as api
386386

387-
if os.getenv("AZURE_CI") == "true" and api == "PySide6":
388-
pytest.skip("PySide6 causes segfaults on Azure")
387+
if (
388+
os.getenv("AZURE_CI") == "true" or os.getenv("GITHUB_ACTIONS") == "true"
389+
) and api == "PySide6":
390+
pytest.skip("PySide6 causes intermittent segfaults on CIs")
389391
test_gui_api_notebook(None, None, backend="qt")

tools/github_actions_env_vars.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ if [[ "$MNE_CI_KIND" == "pip"* ]] || [[ "$MNE_CI_KIND" == "minimal" ]]; then
88
# We should test an eager import somewhere, might as well be here
99
echo "EAGER_IMPORT=true" | tee -a $GITHUB_ENV
1010
# Make sure nothing unexpected is skipped
11-
echo "MNE_TEST_ALLOW_SKIP=.*(Requires (spm|brainstorm) dataset|CUDA not|Numba not).*" | tee -a $GITHUB_ENV
11+
echo "MNE_TEST_ALLOW_SKIP=.*(CUDA not|Numba not|PySide6 causes segfaults).*" | tee -a $GITHUB_ENV
1212
fi
1313
echo "MNE_QT_BACKEND=PySide6" | tee -a $GITHUB_ENV
1414
elif [[ "$MNE_CI_KIND" == "old" ]]; then
@@ -19,7 +19,7 @@ elif [[ "$MNE_CI_KIND" == "conda" ]]; then
1919
echo "Setting conda env vars for $MNE_CI_KIND"
2020
echo "CONDA_ENV=environment.yml" | tee -a $GITHUB_ENV
2121
echo "MNE_LOGGING_LEVEL=warning" | tee -a $GITHUB_ENV
22-
echo "MNE_TEST_ALLOW_SKIP=.*(Requires (spm|brainstorm) dataset|CUDA not|Accelerate|Flakey verbose behavior).*" | tee -a $GITHUB_ENV
22+
echo "MNE_TEST_ALLOW_SKIP=.*(CUDA not|Accelerate|Flakey verbose behavior|PySide6 causes segfaults).*" | tee -a $GITHUB_ENV
2323
# Our cache_dir test has problems when the path is too long, so prevent it from getting too long
2424
if [[ "$CI_OS_NAME" == "macos"* ]]; then
2525
echo "PYTEST_DEBUG_TEMPROOT=/tmp" | tee -a $GITHUB_ENV

0 commit comments

Comments
 (0)