File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments