Skip to content

Commit f51995e

Browse files
authored
Merge branch 'main' into enh-13863-soft-import-missing-version
2 parents 1845249 + 844eb48 commit f51995e

27 files changed

Lines changed: 159 additions & 44 deletions

.github/workflows/autofix.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ jobs:
2121
- run: pip install --upgrade towncrier pygithub gitpython numpy
2222
- run: python ./.github/actions/rename_towncrier/rename_towncrier.py
2323
- run: python ./tools/dev/ensure_headers.py
24-
- uses: autofix-ci/action@7a166d7532b277f34e16238930461bf77f9d7ed8
24+
- uses: autofix-ci/action@c5b2d67aa2274e7b5a18224e8171550871fc7e4a

.github/workflows/codeql-analysis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444

4545
# Initializes the CodeQL tools for scanning.
4646
- name: Initialize CodeQL
47-
uses: github/codeql-action/init@v4.35.1
47+
uses: github/codeql-action/init@v4.35.2
4848
with:
4949
languages: ${{ matrix.language }}
5050
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -58,7 +58,7 @@ jobs:
5858
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
5959
# If this step fails, then you should remove it and run the build manually (see below)
6060
- name: Autobuild
61-
uses: github/codeql-action/autobuild@v4.35.1
61+
uses: github/codeql-action/autobuild@v4.35.2
6262

6363
# ℹ️ Command-line programs to run using the OS shell.
6464
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
@@ -71,4 +71,4 @@ jobs:
7171
# ./location_of_script_within_repo/buildscript.sh
7272

7373
- name: Perform CodeQL Analysis
74-
uses: github/codeql-action/analyze@v4.35.1
74+
uses: github/codeql-action/analyze@v4.35.2

.github/workflows/spec_zero.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
timeout-minutes: 10
4242
with:
4343
detached: true
44-
- uses: astral-sh/setup-uv@v8.0.0
44+
- uses: astral-sh/setup-uv@v8.1.0
4545
with:
4646
version: ">=0.9"
4747
activate-environment: true

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ jobs:
154154
if: matrix.kind == 'conda' || matrix.kind == 'mamba'
155155
timeout-minutes: 20
156156
# Python (if old)
157-
- uses: astral-sh/setup-uv@v8.0.0
157+
- uses: astral-sh/setup-uv@v8.1.0
158158
with:
159159
version: ">=0.9"
160160
activate-environment: true

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
repos:
22
# Ruff mne
33
- repo: https://github.com/astral-sh/ruff-pre-commit
4-
rev: v0.15.11
4+
rev: v0.15.12
55
hooks:
66
- id: ruff-check
77
name: ruff lint mne

azure-pipelines.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ stages:
133133
key: $(testing_version)
134134
path: /home/vsts/mne_data
135135
displayName: 'Cache testing data'
136-
- script: python -c "import mne; mne.datasets.testing.data_path(verbose=True)"
136+
- bash: ./tools/github_actions_download.sh
137137
displayName: 'Get test data'
138138
- script: pytest -m "ultraslowtest or pgtest" --tb=short --cov=mne --cov-report=xml -vv mne
139139
displayName: 'slow and mne-qt-browser tests'
@@ -188,7 +188,7 @@ stages:
188188
key: $(testing_version)
189189
path: /home/vsts/mne_data
190190
displayName: 'Cache testing data'
191-
- script: python -c "import mne; mne.datasets.testing.data_path(verbose=True)"
191+
- bash: ./tools/github_actions_download.sh
192192
displayName: 'Get test data'
193193
- bash: |
194194
set -eo pipefail
@@ -285,7 +285,7 @@ stages:
285285
key: $(testing_version)
286286
path: C:\Users\VssAdministrator\mne_data
287287
displayName: 'Cache testing data'
288-
- script: python -c "import mne; mne.datasets.testing.data_path(verbose=True)"
288+
- bash: ./tools/github_actions_download.sh
289289
displayName: 'Get test data'
290290
- script: pytest -m "not (slowtest or pgtest)" --tb=short --cov=mne --cov-report=xml -vv mne
291291
displayName: 'Run tests'

doc/changes/dev/13858.bugfix.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add a ``memmap`` keyword argument to :meth:`mne.io.BaseRaw.load_data`, allowing loading deferred raw data into a memory-mapped file after object creation, by `Aniket Singh Yadav`_.

doc/changes/dev/13874.bugfix.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Improved error message when FreeSurfer executable is not found, by :newcontrib:`Ayushi Satodiya`.

doc/changes/names.inc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
.. _Ashley Drew: https://github.com/ashdrew
3636
.. _Asish Panda: https://github.com/kaichogami
3737
.. _Austin Hurst: https://github.com/a-hurst
38+
.. _Ayushi Satodiya: https://github.com/ayuclan
3839
.. _Baris Talar: https://github.com/baris-talar
3940
.. _Beige Jin: https://github.com/BeiGeJin
4041
.. _Ben Beasley: https://github.com/musicinmybrain

doc/development/contributing.rst

Lines changed: 42 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -661,17 +661,49 @@ change, and append additional PR numbers in parentheticals with the ``:gh:`` rol
661661
662662
Short description of the changes, by `Firstname Lastname`_. (:gh:`12346`)
663663
664-
Test locally before opening pull requests (PRs)
665-
-----------------------------------------------
666-
667-
MNE-Python uses `continuous integration`_ (CI) to ensure code quality and
668-
test across multiple installation targets. However, the CIs are often slower
669-
than testing locally, especially when other contributors also have open PRs
670-
(which is basically always the case). Therefore, do not rely on the CIs to
671-
catch bugs and style errors for you; :ref:`run the tests locally <run-tests>`
664+
Continuous integration (CI) and local testing before opening a PR
665+
-----------------------------------------------------------------
666+
667+
Continuous integration (CI) uses automated systems to run tests and checks on your code
668+
whenever you open or update a pull request.
669+
MNE-Python uses `continuous integration`_ (CI) to ensure code quality,
670+
test across multiple platforms, and automatically validate pull requests.
671+
However, CI runs are slower than testing locally and some of them cost money to run.
672+
Therefore, *do not rely on the CIs to catch bugs and style errors for you*;
673+
:ref:`run the tests locally <run-tests>`
672674
instead before opening a new PR and before each time you push additional
673675
changes to an already-open PR.
674676

677+
MNE-Python uses the following CI services:
678+
679+
- `GitHub Actions`_ and `Azure`_ for testing code across platforms
680+
- `CodeCov`_ checks how much of the code is tested
681+
- `CircleCI`_ for building the documentation
682+
683+
If you are contributing for the first time, you may notice that `Github Actions`_
684+
jobs do not start automatically, or appear as "pending".
685+
This is expected behavior. Github Actions requires **manual approval from a
686+
maintainer** before running jobs submitted by new contributors. This is a
687+
security measure to prevent misuse of CI resources.
688+
689+
As a result:
690+
691+
- Github Actions jobs may remain in a *pending* or *not running* state
692+
- This does **not** indicate a problem with your code
693+
694+
Once you have at least one PR merged into the MNE-Python repository, future
695+
contributions will not require manual approval.
696+
697+
`CircleCI`_ will not build the documentation unless the GitHub account of the PR's most recent commit
698+
is associated with a CircleCI account. Creating one is easy and free,
699+
choose "login with GitHub" on `CircleCI`_ to get started.
700+
If you do not do this, it will show up as a failing CI job.
701+
702+
Before opening or updating a PR, check locally:
703+
704+
- that all tests pass (see :ref:`run-tests`)
705+
- the documentation is built without errors if your changes affect it (see :ref:`build-docs`)
706+
- style checks pass (see :ref:`code-style`)
675707

676708
Make tests fast and thorough
677709
----------------------------
@@ -1108,11 +1140,12 @@ it can serve as a useful example of what to expect from the PR review process.
11081140
11091141
.. _miniconda: https://conda.io/en/latest/miniconda.html
11101142
.. _Spyder: https://www.spyder-ide.org/
1111-
.. _continuous integration: https://en.wikipedia.org/wiki/Continuous_integration
1143+
.. _continuous integration: https://about.gitlab.com/topics/ci-cd/
11121144
.. _matplotlib: https://matplotlib.org/
11131145
.. _github actions: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions
11141146
.. _azure: https://dev.azure.com/mne-tools/mne-python/_build/latest?definitionId=1&branchName=main
11151147
.. _CircleCI: https://circleci.com/gh/mne-tools/mne-python
1148+
.. _CodeCov: https://about.codecov.io/
11161149

11171150
.. optipng
11181151

0 commit comments

Comments
 (0)