Use Pixi in macOS-intel CI#13704
Conversation
|
Hey @scott-huberty, looking at the current diff I noticed you're setting up Found when switching to mne-python/.github/workflows/tests.yml Lines 157 to 165 in 8dd298f Wondered if a similar thing could work for |
|
Ok things are finally making progress! After a few pair programming sessions with @drammock , we are able to at least run the python/pytest commands in the Pixi job, without making changes that break other jobs. Now, the Pixi job test suite is erroring out with a segfault. My current hypothesis is that, because I built the As previously discussed with @drammock - the right path forward is probably to solve the Pixi environment from our |
There was a problem hiding this comment.
@scott-huberty if you incorporate the suggestions here and regen the lockfile (and push it), it should quickly tell us whether the segfault is caused by the pyside/vtk versions
Co-authored-by: Daniel McCloy <dan@mccloy.info>
Confirmed 🙂 |
| fi | ||
| set -x | ||
| python -m pip install $STD_ARGS $INSTALL_ARGS .$EXTRAS $GROUP_ARG | ||
| ${PREFIX} python -m pip install $STD_ARGS $INSTALL_ARGS .$EXTRAS $GROUP_ARG |
There was a problem hiding this comment.
I think it's cleaner and simpler to get the path right in the first place like in mne-tools/mne-bids#1588 rather than prepend conditionally
|
@scott-huberty regarding
Regarding the sequencing of the PATH workaround: I think it just needs to come before |
I would put it immediately after whatever step is supposed to set it up so subsequent steps have |
|
@scott-huberty https://github.com/mne-tools/mne-python/actions/runs/25123755805/job/73631753409#step:9:60 the path we're adding to PATH is the wrong path |
I'm exploring the feasibility of using Pixi to resolve the virtual environment and run tests specifically for the MacOS Intel CI, which currently uses Mamba to create the virtual environment.
My initial strategy was to just to do
pixi init --import environment.yml, so that we can leverage our already defined YAML config file to pull in all the necessary dependencies, as well as configuringprefix-dev/setup-pixito automatically activate our virtual environment, so that we can run commands likepytestetc without having to prependpixi runeverywhere for the pixi CI...Unfortunately the only way I could get this to work was to disable use of a login shell.. Which of course makes all the condo-like CI's fail!!