Skip to content

Commit

Permalink
MAINT: Ensure we dont download without permission
Browse files Browse the repository at this point in the history
  • Loading branch information
larsoner committed Sep 29, 2022
1 parent 07af8cc commit 18c7de2
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -158,13 +158,14 @@ jobs:
- name: Install MNE (stable)
if: "matrix.mne-version == 'mne-stable'"
run: |
git clone --depth 1 https://github.com/mne-tools/mne-python.git -b maint/1.0
git clone --depth 1 --single-branch --branch maint/1.0 https://github.com/mne-tools/mne-python.git -b maint/1.0
python -m pip install -e ./mne-python
- name: Install MNE (main)
if: "matrix.mne-version == 'mne-main'"
run: |
git clone --depth 1 https://github.com/mne-tools/mne-python.git -b main
# git clone --depth 1 --single-branch --branch main https://github.com/mne-tools/mne-python.git -b main
git clone --depth 1 --single-branch --branch nodl https://github.com/larsoner/mne-python.git -b nodl
python -m pip install -e ./mne-python
- name: Install BIDS validator (stable)
Expand Down
16 changes: 16 additions & 0 deletions mne_bids/conftest.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
"""Configure all tests."""
import mne
import pytest


def pytest_configure(config):
"""Configure pytest options."""
# Fixtures
config.addinivalue_line('usefixtures', 'monkeypatch_mne')


@pytest.fixture(scope='session')
def monkeypatch_mne():
"""Monkeypatch MNE to ensure we have download=False everywhere in tests."""
mne.datasets.utils._MODULES_TO_ENSURE_DOWNLOAD_IS_FALSE_IN_TESTS = \
('mne', 'mne_bids')

0 comments on commit 18c7de2

Please sign in to comment.