Skip to content

Commit f431a2b

Browse files
committed
Merge remote-tracking branch 'upstream/main' into check
* upstream/main: (23 commits) ENH: Add on_missing for combine_channels (mne-tools#13463) Bump the actions group with 2 updates (mne-tools#13464) Move development dependencies into a dependency group (no more extra) (mne-tools#13452) ENH: add on_missing for rename_channels (mne-tools#13456) add advisory board to website (mne-tools#13462) ENH: Support Nihon Kohden EEG-1200A V01.00 (mne-tools#13448) MAINT: Update dependency specifiers (mne-tools#13459) ENH: Add encoding parameter to Nihon Kohden reader (mne-tools#13458) [MAINT] Automatic SPEC0 dependency version management (mne-tools#13451) FIX: Read Nihon Kohden annotation file accurately (mne-tools#13251) MAINT: Restore edfio git install (mne-tools#13421) Support preload=False for the new EEGLAB single .set format (mne-tools#13096) [pre-commit.ci] pre-commit autoupdate (mne-tools#13453) MAINT: Restore PySide6 6.10.0 testing (mne-tools#13446) MAINT: Auth [skip azp] [skip actions] MAINT: Deploy [circle deploy] [skip azp] [skip actions] Bump github/codeql-action from 3 to 4 in the actions group (mne-tools#13442) ENH: Dont constrain fiducial clicks to mesh vertices (mne-tools#13445) Use timezone-aware ISO 8601 for website timestamp (mne-tools#13347) [pre-commit.ci] pre-commit autoupdate (mne-tools#13443) ...
2 parents 79d4b50 + e50d565 commit f431a2b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+1341
-330
lines changed

.circleci/config.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ jobs:
3636
- restore_cache:
3737
keys:
3838
- source-cache
39-
- checkout
39+
- checkout:
40+
method: full
4041
- run:
4142
name: Complete checkout
4243
command: |
@@ -461,7 +462,11 @@ jobs:
461462
at: /tmp/build
462463
- restore_cache:
463464
keys:
464-
- website-cache
465+
- website-cache-1
466+
- add_ssh_keys:
467+
fingerprints:
468+
# SHA256:N4qvp6MSbXcTz/27xz96VPsNuTDRT92zoRP8EW0I/8I
469+
- "19:fe:1d:c3:c7:af:7e:16:94:4c:e1:e7:0a:56:13:bd"
465470
- run:
466471
name: Set BASH_ENV
467472
command: |
@@ -489,6 +494,7 @@ jobs:
489494
command: |
490495
git config --global user.email "[email protected]";
491496
git config --global user.name "Circle CI";
497+
ssh-add -D && ssh-add ~/.ssh/id_rsa_19fe1dc3c7af7e16944ce1e70a5613bd
492498
cd ~/mne-tools.github.io;
493499
git checkout main
494500
git remote -v
@@ -510,9 +516,9 @@ jobs:
510516
fi;
511517
git push origin main;
512518
- save_cache:
513-
key: website-cache
519+
key: website-cache-1
514520
paths:
515-
- ~/mne_data/MNE-visual_92_categories-data
521+
- ~/mne-tools.github.io
516522

517523
workflows:
518524
default:

.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@v3
47+
uses: github/codeql-action/init@v4
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@v3
61+
uses: github/codeql-action/autobuild@v4
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@v3
74+
uses: github/codeql-action/analyze@v4

.github/workflows/credit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,6 @@ jobs:
4040
git checkout -b credit
4141
git commit -am "MAINT: Update code credit"
4242
git push origin credit
43-
PR_NUM=$(gh pr create --base main --head credit --title "MAINT: Update code credit" --body "Created by credit [GitHub action](https://github.com/mne-tools/mne-python/actions/runs/${{ github.run_id }})." --label "no-changelog-entry-needed")
43+
PR_NUM=$(gh pr create --base main --head credit --title "MAINT: Update code credit" --body "Created by credit [GitHub action](https://github.com/mne-tools/mne-python/actions/runs/${{ github.run_id }}). <br> <br> *Adjustments may need to be made to `doc/changes/credit_tools.py` or `.mailmap` etc. to get CircleCI to pass.*" --label "no-changelog-entry-needed")
4444
echo "Opened https://github.com/mne-tools/mne-python/pull/${PR_NUM}" >> $GITHUB_STEP_SUMMARY
4545
if: steps.status.outputs.dirty == 'true'

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
pip install build twine
2929
- run: python -m build --sdist --wheel
3030
- run: twine check --strict dist/*
31-
- uses: actions/upload-artifact@v4
31+
- uses: actions/upload-artifact@v5
3232
with:
3333
name: dist
3434
path: dist
@@ -43,7 +43,7 @@ jobs:
4343
name: pypi
4444
url: https://pypi.org/p/mne
4545
steps:
46-
- uses: actions/download-artifact@v5
46+
- uses: actions/download-artifact@v6
4747
with:
4848
name: dist
4949
path: dist

.github/workflows/spec_zero.yml

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
name: SPEC0
2+
3+
on: # yamllint disable-line rule:truthy
4+
schedule:
5+
- cron: '0 0 * * 1' # At 00:00 every Monday
6+
workflow_dispatch:
7+
inputs:
8+
ssh:
9+
description: 'Enable ssh debugging'
10+
required: false
11+
default: false
12+
type: boolean
13+
14+
jobs:
15+
update_versions:
16+
permissions:
17+
contents: write
18+
pull-requests: write
19+
name: Update dependency versions
20+
runs-on: ubuntu-latest
21+
env:
22+
GH_TOKEN: ${{ github.token }}
23+
GITHUB_TOKEN: ${{ github.token }}
24+
steps:
25+
- uses: actions/checkout@v5
26+
with:
27+
persist-credentials: true
28+
- name: Triage SSH
29+
run: |
30+
if [[ "${{ inputs.ssh }}" == "true" ]] || [[ "$COMMIT_MESSAGE" == *"[actions ssh]"* ]]; then
31+
echo "ENABLE_SSH=true" | tee -a $GITHUB_ENV
32+
else
33+
echo "ENABLE_SSH=false" | tee -a $GITHUB_ENV
34+
fi
35+
- name: Setup Remote SSH Connection
36+
if: env.ENABLE_SSH == 'true'
37+
uses: mxschmitt/action-tmate@v3
38+
timeout-minutes: 10
39+
with:
40+
detached: true
41+
- uses: actions/setup-python@v6
42+
with:
43+
python-version: '3.12'
44+
- run: pip install packaging requests tomlkit
45+
- run: python tools/dev/spec_zero_update_versions.py
46+
- run: |
47+
git diff && git status --porcelain
48+
if [[ $(git status --porcelain) ]]; then
49+
echo "dirty=true" >> $GITHUB_OUTPUT
50+
fi
51+
id: status
52+
- name: Create PR
53+
run: |
54+
set -xeo pipefail
55+
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
56+
git config --global user.name "github-actions[bot]"
57+
git checkout -b spec_zero
58+
git commit -am "MAINT: Update dependency specifiers"
59+
git push origin spec_zero
60+
PR_NUM=$(gh pr create --base main --head spec_zero --title "MAINT: Update dependency specifiers" --body "Created by spec_zero [GitHub action](https://github.com/mne-tools/mne-python/actions/runs/${{ github.run_id }}). <br> <br> *Adjustments may need to be made to shims in mne/fixes.py in this or another PR. `git grep TODO VERSION` is a good starting point for finding potential updates.*" --label "no-changelog-entry-needed")
61+
echo "Opened https://github.com/mne-tools/mne-python/pull/${PR_NUM}" >> $GITHUB_STEP_SUMMARY
62+
if: steps.status.outputs.dirty == 'true'

.github/workflows/tests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ jobs:
5959
PYTHON_VERSION: '${{ matrix.python }}'
6060
MKL_NUM_THREADS: '1'
6161
OPENBLAS_NUM_THREADS: '1'
62+
OMP_NUM_THREADS: '1'
6263
PYTHONUNBUFFERED: '1'
6364
MNE_CI_KIND: '${{ matrix.kind }}'
6465
CI_OS_NAME: '${{ matrix.os }}'

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
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.13.3
4+
rev: v0.14.1
55
hooks:
66
- id: ruff-check
77
name: ruff lint mne
@@ -54,7 +54,7 @@ repos:
5454
rev: v6.0.0
5555
hooks:
5656
- id: file-contents-sorter
57-
files: ^doc/changes/names.inc|^.mailmap
57+
files: ^doc/changes/names.inc|^.mailmap|^doc/sphinxext/related_software.txt
5858
args: ["--ignore-case"]
5959

6060
- repo: https://github.com/pappasam/toml-sort
@@ -82,7 +82,7 @@ repos:
8282

8383
# zizmor
8484
- repo: https://github.com/woodruffw/zizmor-pre-commit
85-
rev: v1.14.2
85+
rev: v1.15.2
8686
hooks:
8787
- id: zizmor
8888

.yamllint.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,5 @@ ignore: |
66
rules:
77
line-length: disable
88
document-start: disable
9+
new-lines:
10+
type: platform

azure-pipelines.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ stages:
5252
- bash: |
5353
set -eo pipefail
5454
python -m pip install --progress-bar off --upgrade pip build
55-
python -m pip install --progress-bar off -ve .[hdf5,test]
55+
python -m pip install --progress-bar off -ve .[hdf5] --group=test
5656
python -m pip uninstall -yq pytest-qt # don't want to set up display, etc. for this
5757
pre-commit install --install-hooks
5858
displayName: Install dependencies
@@ -88,6 +88,7 @@ stages:
8888
variables:
8989
DISPLAY: ':99'
9090
OPENBLAS_NUM_THREADS: '1'
91+
OMP_NUM_THREADS: '1'
9192
MNE_TEST_ALLOW_SKIP: '^.*(PySide6 causes segfaults).*$'
9293
MNE_BROWSER_PRECOMPUTE: 'false'
9394
steps:
@@ -115,7 +116,7 @@ stages:
115116
python -m pip install --progress-bar off --upgrade pip
116117
python -m pip install --progress-bar off "mne-qt-browser[opengl] @ git+https://github.com/mne-tools/mne-qt-browser.git" pyvista scikit-learn python-picard qtpy nibabel sphinx-gallery "PySide6!=6.8.0,!=6.8.0.1,!=6.8.1.1,!=6.9.1" pandas neo pymatreader antio defusedxml
117118
python -m pip uninstall -yq mne
118-
python -m pip install --progress-bar off --upgrade -e .[test]
119+
python -m pip install --progress-bar off --upgrade -e . --group=test
119120
displayName: 'Install dependencies with pip'
120121
- bash: |
121122
set -e
@@ -172,7 +173,7 @@ stages:
172173
python -m pip install --progress-bar off --upgrade pip
173174
python -m pip install --progress-bar off --upgrade --pre --only-binary=\"numpy,scipy,matplotlib,vtk\" numpy scipy matplotlib vtk
174175
python -c "import vtk"
175-
python -m pip install --progress-bar off --upgrade -ve .[full,test_extra]
176+
python -m pip install --progress-bar off --upgrade -ve .[full] --group=test_extra
176177
displayName: 'Install dependencies with pip'
177178
- bash: |
178179
set -e
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Support for preloading=False when reading .set files, by `Bruno Aristimunha`_.

0 commit comments

Comments
 (0)