Skip to content

Commit 86c2e32

Browse files
committed
FIX: More
1 parent 2d59fe9 commit 86c2e32

1 file changed

Lines changed: 23 additions & 1 deletion

File tree

.github/workflows/tests.yml

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,11 +123,33 @@ jobs:
123123
with:
124124
python-version: ${{ matrix.python }}
125125
if: startswith(matrix.kind, 'pip')
126+
# Python (if conda)
127+
- name: Fixes for conda
128+
run: |
129+
# For some reason on Linux we get crashes
130+
if [[ "$RUNNER_OS" == "Linux" ]]; then
131+
sed -i "/numba/d" environment.yml
132+
fi
133+
# And on Windows and macOS PySide6.9.0 segfaults
134+
PYSIDE_VER=6.10.2
135+
VTK_VER=9.6.1
136+
if [[ "$RUNNER_OS" == "macOS" ]]; then
137+
sed -i "" "s/ - PySide6 .*/ - PySide6 =$PYSIDE_VER/g" environment.yml
138+
sed -i "" "s/ - vtk .*/ - vtk =$VTK_VER/g" environment.yml
139+
140+
else
141+
sed -i "s/ - PySide6 .*/ - PySide6 =$PYSIDE_VER/g" environment.yml
142+
sed -i "s/ - vtk .*/ - vtk =$VTK_VER/g" environment.yml
143+
if [[ "$RUNNER_OS" == "Windows" ]]; then
144+
echo "MNE_IS_OSMESA=true" | tee -a $GITHUB_ENV
145+
fi
146+
fi
147+
if: matrix.kind == 'conda' || matrix.kind == 'mamba'
126148
- uses: mamba-org/setup-micromamba@v3
127149
with:
128150
environment-file: ${{ env.CONDA_ENV }}
129151
environment-name: mne
130-
log-level: 'info'
152+
log-level: ${{ runner.debug == '1' && 'debug' || 'info' }}
131153
create-args: >-
132154
python=${{ env.PYTHON_VERSION }}
133155
-v

0 commit comments

Comments
 (0)