Skip to content

WIP: Try free-threaded build #13323

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 10 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 22 additions & 22 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,29 +67,29 @@ jobs:
matrix:
include:
- os: ubuntu-latest
python: '3.13'
python: '3.13t' # free-threaded
kind: pip
- os: ubuntu-latest
python: '3.12'
kind: pip-pre
- os: ubuntu-latest
python: '3.12'
kind: conda
- os: macos-latest # arm64 (Apple Silicon)
python: '3.12'
kind: mamba
- os: macos-13 # latest Intel release
python: '3.12'
kind: mamba
- os: windows-latest
python: '3.10'
kind: mamba
- os: ubuntu-latest
python: '3.10'
kind: minimal
- os: ubuntu-22.04
python: '3.10'
kind: old
# - os: ubuntu-latest
# python: '3.12'
# kind: pip-pre
# - os: ubuntu-latest
# python: '3.12'
# kind: conda
# - os: macos-latest # arm64 (Apple Silicon)
# python: '3.12'
# kind: mamba
# - os: macos-13 # latest Intel release
# python: '3.12'
# kind: mamba
# - os: windows-latest
# python: '3.10'
# kind: mamba
# - os: ubuntu-latest
# python: '3.10'
# kind: minimal
# - os: ubuntu-22.04
# python: '3.10'
# kind: old
steps:
- uses: actions/checkout@v4
with:
Expand Down
2 changes: 1 addition & 1 deletion azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ stages:
- bash: |
set -eo pipefail
python -m pip install --progress-bar off --upgrade pip build
python -m pip install --progress-bar off -ve .[hdf5,test]
python -m pip install --progress-bar off -ve .[hdf5,test] twine
python -m pip uninstall -yq pytest-qt # don't want to set up display, etc. for this
pre-commit install --install-hooks
displayName: Install dependencies
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,6 @@ test = [
"ruff",
"toml-sort",
"tomli; python_version<'3.11'",
"twine",
"vulture",
"wheel",
]
Expand All @@ -174,6 +173,7 @@ test_extra = [
"snirf",
"sphinx-gallery",
"statsmodels",
"twine",
]

[project.urls]
Expand Down
9 changes: 8 additions & 1 deletion tools/github_actions_dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@ if [ ! -z "$CONDA_ENV" ]; then
STD_ARGS="--progress-bar off"
fi
elif [[ "${MNE_CI_KIND}" == "pip" ]]; then
INSTALL_KIND="full-pyside6,$INSTALL_KIND"
# This one is free-threaded so can't have numba or PySide6/PyQt6 as of 2025/07/15
INSTALL_ARGS="nibabel scikit-learn numpydoc pandas defusedxml edfio"
# ... mffpy requires lxml, which tries to build from source and uses Cython (ugh)
# ... and also unavialble are h5py (or h5io), cryptography (thus twine)
INSTALL_KIND="test"
else
test "${MNE_CI_KIND}" == "pip-pre"
STD_ARGS="$STD_ARGS --pre"
Expand All @@ -32,3 +36,6 @@ echo ""

echo "Installing test dependencies using pip"
python -m pip install $STD_ARGS $INSTALL_ARGS .[$INSTALL_KIND]
if [[ "${MNE_CI_KIND}" == "pip" ]]; then
python -m pip uninstall -yq pytest-qt
fi
Loading