[MRG] ENH: Add weighted symbolic mutual information (wSMI) connectivity measure #1344
Workflow file for this run
This file contains hidden or 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
| name: "unit_tests" | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.number }}-${{ github.event.type }} | |
| cancel-in-progress: true | |
| on: | |
| push: | |
| branches: | |
| - "main" | |
| pull_request: | |
| branches: | |
| - "*" | |
| jobs: | |
| # Run unit tests | |
| test: | |
| runs-on: ${{ matrix.os }} | |
| defaults: | |
| run: | |
| shell: bash -e {0} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - os: ubuntu-latest | |
| python-version: "3.10" | |
| mne-version: mne-main | |
| - os: ubuntu-latest | |
| python-version: "3.13" | |
| mne-version: mne-main | |
| - os: ubuntu-latest | |
| python-version: "3.13" | |
| mne-version: mne-stable | |
| - os: macos-latest | |
| python-version: "3.13" | |
| mne-version: mne-main | |
| - os: windows-latest | |
| python-version: "3.13" | |
| mne-version: mne-main | |
| env: | |
| TZ: Europe/Berlin | |
| FORCE_COLOR: true | |
| DISPLAY: ":99.0" | |
| MNE_LOGGING_LEVEL: "info" | |
| OPENBLAS_NUM_THREADS: "1" | |
| PYTHONUNBUFFERED: "1" | |
| steps: | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - uses: actions/checkout@v6 | |
| - uses: pyvista/setup-headless-display-action@main | |
| with: | |
| qt: true | |
| pyvista: false | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip setuptools wheel | |
| pip install --upgrade --upgrade-strategy eager .[test] | |
| - name: Install MNE (stable) | |
| if: matrix.mne-version == 'mne-stable' | |
| run: pip install --upgrade mne | |
| - name: Install MNE (main) | |
| if: matrix.mne-version == 'mne-main' | |
| run: pip install git+https://github.com/mne-tools/mne-python@main | |
| - run: python -c "import mne; print(mne.datasets.testing.data_path(verbose=True))" | |
| - name: Display versions and environment information | |
| run: | | |
| echo $TZ | |
| date | |
| python --version | |
| which python | |
| - run: pip install -e . | |
| - run: mne sys_info | |
| - run: python -m pytest . --cov=mne_connectivity --cov-report=xml --cov-config=pyproject.toml --verbose --ignore mne-python | |
| - uses: codecov/codecov-action@v5 |