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 |
|
possible problem: seems like environment is getting MNE stable release (not main/PR): https://github.com/mne-tools/mne-python/actions/runs/30474035062/job/90651542841?pr=13704#step:18:61 probably because of this: https://github.com/mne-tools/mne-python/actions/runs/30474035062/job/90651542841?pr=13704#step:9:372 |
hmm The pixi.lock file has: EDIT: Maybe because |
Co-authored-by: Scott Huberty <52462026+scott-huberty@users.noreply.github.com>
| # Our cache_dir test has problems when the path is too long, so prevent it from getting too long | ||
| if [[ "$RUNNER_OS" == "macOS" ]]; then | ||
| echo "PYTEST_DEBUG_TEMPROOT=/tmp" | tee -a $GITHUB_ENV | ||
| fi |
There was a problem hiding this comment.
It would be great to have a MNE_TEST_ALLOW_SKIP in this branch to ensure only the examples you expect to be skipped are actually skipped. The old macOS job had this above ☝️ . You could try taking it directly, but maybe better to cross-reference it against the actual skips. (It might suggest and additional dependency or two that you could add to shrink the skip list.)
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!!