-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
575 changed files
with
15,966 additions
and
10,813 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,58 +22,6 @@ _check_skip: &check_skip | |
fi | ||
jobs: | ||
pytest-macos-arm64: | ||
parameters: | ||
scheduled: | ||
type: string | ||
default: "false" | ||
macos: | ||
xcode: "14.2.0" | ||
resource_class: macos.m1.medium.gen1 | ||
environment: | ||
HOMEBREW_NO_AUTO_UPDATE: 1 | ||
steps: | ||
- checkout | ||
- run: | ||
<<: *check_skip | ||
- run: | ||
name: Install Python and dependencies | ||
command: | | ||
set -eo pipefail | ||
brew install [email protected] | ||
which python | ||
which pip | ||
pip install --upgrade pip | ||
pip install --upgrade --only-binary "numpy,scipy,dipy,statsmodels" -ve .[full,test_extra] | ||
# 3D too slow on Apple's software renderer, and numba causes us problems | ||
pip uninstall -y vtk pyvista pyvistaqt numba | ||
mkdir -p test-results | ||
echo "set -eo pipefail" >> $BASH_ENV | ||
- run: | ||
command: mne sys_info | ||
- run: | ||
command: ./tools/get_testing_version.sh && cat testing_version.txt | ||
- restore_cache: | ||
keys: | ||
- data-cache-testing-{{ checksum "testing_version.txt" }} | ||
- run: | ||
command: python -c "import mne; mne.datasets.testing.data_path(verbose=True)" | ||
- save_cache: | ||
key: data-cache-testing-{{ checksum "testing_version.txt" }} | ||
paths: | ||
- ~/mne_data/MNE-testing-data # (2.5 G) | ||
- run: | ||
command: pytest -m "not slowtest" --tb=short --cov=mne --cov-report xml -vv mne | ||
- run: | ||
name: Prepare test data upload | ||
command: cp -av junit-results.xml test-results/junit.xml | ||
- store_test_results: | ||
path: ./test-results | ||
# Codecov orb has bugs on macOS (gpg issues) | ||
# - codecov/upload | ||
- run: | ||
command: bash <(curl -s https://codecov.io/bash) | ||
|
||
build_docs: | ||
parameters: | ||
scheduled: | ||
|
@@ -454,6 +402,7 @@ jobs: | |
default: "false" | ||
docker: | ||
- image: cimg/base:current-22.04 | ||
resource_class: large | ||
steps: | ||
- restore_cache: | ||
keys: | ||
|
@@ -496,8 +445,8 @@ jobs: | |
|
||
|
||
deploy: | ||
machine: | ||
image: ubuntu-2004:202111-01 | ||
docker: | ||
- image: cimg/base:current-22.04 | ||
steps: | ||
- attach_workspace: | ||
at: /tmp/build | ||
|
@@ -591,20 +540,6 @@ workflows: | |
only: | ||
- main | ||
|
||
weekly: | ||
jobs: | ||
- pytest-macos-arm64: | ||
name: pytest_macos_arm64_weekly | ||
scheduled: "true" | ||
triggers: | ||
- schedule: | ||
# "At 6:00 AM GMT every Monday" | ||
cron: "0 6 * * 1" | ||
filters: | ||
branches: | ||
only: | ||
- main | ||
|
||
monthly: | ||
jobs: | ||
- linkcheck: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
node: $Format:%H$ | ||
node-date: $Format:%cI$ | ||
describe-name: $Format:%(describe:tags=true,match=*[0-9]*)$ | ||
ref-names: $Format:%D$ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,11 +4,9 @@ concurrency: | |
cancel-in-progress: true | ||
on: # yamllint disable-line rule:truthy | ||
push: | ||
branches: | ||
- '*' | ||
branches: ["main", "maint/*"] | ||
pull_request: | ||
branches: | ||
- '*' | ||
branches: ["main", "maint/*"] | ||
|
||
permissions: | ||
contents: read | ||
|
@@ -22,15 +20,18 @@ jobs: | |
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.11' | ||
- uses: pre-commit/[email protected] | ||
python-version: '3.12' | ||
- uses: pre-commit/[email protected] | ||
- run: pip install mypy numpy scipy vulture | ||
- run: mypy | ||
- run: vulture | ||
|
||
bandit: | ||
name: Bandit | ||
needs: style | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: davidslusser/[email protected].0 | ||
- uses: davidslusser/[email protected].1 | ||
with: | ||
src: "mne" | ||
options: "-c pyproject.toml -ll -r" | ||
|
@@ -56,13 +57,16 @@ jobs: | |
matrix: | ||
include: | ||
- os: ubuntu-latest | ||
python: '3.10' | ||
kind: conda | ||
- os: ubuntu-latest | ||
python: '3.11' | ||
python: '3.12' | ||
kind: pip-pre | ||
- os: macos-latest | ||
python: '3.9' | ||
- os: ubuntu-latest | ||
python: '3.12' | ||
kind: conda | ||
- os: macos-14 # arm64 | ||
python: '3.12' | ||
kind: mamba | ||
- os: macos-latest # intel | ||
python: '3.12' | ||
kind: mamba | ||
- os: windows-latest | ||
python: '3.10' | ||
|
@@ -89,6 +93,12 @@ jobs: | |
python-version: ${{ matrix.python }} | ||
if: startswith(matrix.kind, 'pip') | ||
# Python (if conda) | ||
- name: Remove numba and dipy | ||
run: | # TODO: Remove when numba 0.59 and dipy 1.8 land on conda-forge | ||
sed -i '/numba/d' environment.yml | ||
sed -i '/dipy/d' environment.yml | ||
sed -i 's/- mne$/- mne-base/' environment.yml | ||
if: matrix.os == 'ubuntu-latest' && startswith(matrix.kind, 'conda') && matrix.python == '3.12' | ||
- uses: mamba-org/setup-micromamba@v1 | ||
with: | ||
environment-file: ${{ env.CONDA_ENV }} | ||
|
@@ -98,6 +108,9 @@ jobs: | |
mamba | ||
fmt!=10.2.0 | ||
if: ${{ !startswith(matrix.kind, 'pip') }} | ||
# Make sure we have the right Python | ||
- run: python -c "import platform; assert platform.machine() == 'arm64', platform.machine()" | ||
if: matrix.os == 'macos-14' | ||
- run: ./tools/github_actions_dependencies.sh | ||
# Minimal commands on Linux (macOS stalls) | ||
- run: ./tools/get_minimal_commands.sh | ||
|
@@ -110,11 +123,13 @@ jobs: | |
run: MNE_SKIP_TESTING_DATASET_TESTS=true pytest -m "not (ultraslowtest or pgtest)" --tb=short --cov=mne --cov-report xml -vv -rfE mne/ | ||
if: matrix.kind == 'minimal' | ||
- run: ./tools/get_testing_version.sh | ||
- uses: actions/cache@v3 | ||
- uses: actions/cache@v4 | ||
with: | ||
key: ${{ env.TESTING_VERSION }} | ||
path: ~/mne_data | ||
- run: ./tools/github_actions_download.sh | ||
- run: ./tools/github_actions_test.sh | ||
- uses: codecov/codecov-action@v3 | ||
- uses: codecov/codecov-action@v4 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
if: success() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -114,11 +114,13 @@ Giorgio Marinato <[email protected]> neurogima <76406896+neurogima@users | |
Guillaume Dumas <[email protected]> deep-introspection <[email protected]> | ||
Guillaume Dumas <[email protected]> Guillaume Dumas <[email protected]> | ||
Hamid Maymandi <[email protected]> Hamid <[email protected]> | ||
Hasrat Ali Arzoo <[email protected]> hasrat17 <[email protected]> | ||
Hongjiang Ye <[email protected]> YE Hongjiang <[email protected]> | ||
Hubert Banville <[email protected]> hubertjb <[email protected]> | ||
Hüseyin Orkun Elmas <[email protected]> Hüseyin <[email protected]> | ||
Hyonyoung Shin <[email protected]> mcvain <[email protected]> | ||
Ingoo Lee <[email protected]> dlsrnsi <[email protected]> | ||
Ivo de Jong <[email protected]> ivopascal <[email protected]> | ||
Jaakko Leppakangas <[email protected]> Jaakko Leppakangas <[email protected]> | ||
Jaakko Leppakangas <[email protected]> jaeilepp <[email protected]> | ||
Jaakko Leppakangas <[email protected]> jaeilepp <[email protected]> | ||
|
@@ -220,6 +222,7 @@ Mikołaj Magnuski <[email protected]> Mikolaj Magnuski <[email protected] | |
Mikołaj Magnuski <[email protected]> mmagnuski <[email protected]> | ||
Mohamed Sherif <[email protected]> mohdsherif <[email protected]> | ||
Mohammad Daneshzand <[email protected]> mdaneshzand <[email protected]> | ||
Motofumi Fushimi <[email protected]> motofumi-fushimi <[email protected]> | ||
Natalie Klein <[email protected]> natalieklein <[email protected]> | ||
Nathalie Gayraud <[email protected]> Nathalie <[email protected]> | ||
Nathalie Gayraud <[email protected]> Nathalie <[email protected]> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.