Skip to content

Commit

Permalink
WIP, MAINT: Fix Azure python pre failures (mne-tools#8035)
Browse files Browse the repository at this point in the history
* ENH: Verbose output [skip travis]

* WIP: More [skip travis]

* FIX: Skip [skip travis]

* MAINT: Simplify
  • Loading branch information
larsoner authored Jul 21, 2020
1 parent 6db1b33 commit 0b3ad03
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 15 deletions.
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -142,15 +142,15 @@ script:
pip install -e .;
python mne/tests/test_evoked.py;
fi;
- echo 'pytest -m "${CONDITION}" --cov=mne -n 1 ${USE_DIRS}'
- pytest -m "${CONDITION}" --tb=short --cov=mne -n 1 ${USE_DIRS}
- echo 'pytest -m "${CONDITION}" --cov=mne ${USE_DIRS}'
- pytest -m "${CONDITION}" --tb=short --cov=mne ${USE_DIRS}
# run the minimal one with the testing data
- if [ "${DEPS}" == "minimal" ]; then
export MNE_SKIP_TESTING_DATASET_TESTS=false;
python -c 'import mne; mne.datasets.testing.data_path(verbose=True)';
fi;
- if [ "${DEPS}" == "minimal" ]; then
pytest -m "${CONDITION}" --tb=short --cov=mne -n 1 ${USE_DIRS};
pytest -m "${CONDITION}" --tb=short --cov=mne ${USE_DIRS};
fi;

after_script:
Expand Down
16 changes: 9 additions & 7 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,12 @@ jobs:
displayName: 'Spin up Xvfb'
- bash: |
set -e
pip install --upgrade numpy scipy vtk -r requirements.txt -r requirements_testing.txt codecov
python -m pip install --upgrade pip setuptools
python -m pip install --upgrade numpy scipy vtk -r requirements.txt -r requirements_testing.txt codecov
displayName: 'Install dependencies with pip'
- script: python -c "import mne; mne.datasets.testing.data_path(verbose=True)"
displayName: 'Get test data'
- script: pytest -m "ultraslowtest" --tb=short --cov=mne -n 1 mne
- script: pytest -m "ultraslowtest" --tb=short --cov=mne mne
displayName: 'Run ultraslow tests'
- script: codecov --root $BUILD_REPOSITORY_LOCALPATH -t $CODECOV_TOKEN
displayName: 'Codecov'
Expand Down Expand Up @@ -194,10 +195,11 @@ jobs:
displayName: Install OpenGL
- bash: |
set -e
pip install --upgrade numpy scipy vtk
pip install --upgrade -r requirements.txt -r requirements_testing.txt
pip install codecov
pip uninstall -yq pysurfer mayavi
python -m pip install --upgrade pip setuptools
python -m pip install --upgrade numpy scipy vtk
python -m pip install --upgrade -r requirements.txt -r requirements_testing.txt
python -m pip install codecov
python -m pip uninstall -yq pysurfer mayavi
condition: eq(variables['TEST_MODE'], 'pip')
displayName: 'Install dependencies with pip'
- bash: |
Expand Down Expand Up @@ -234,7 +236,7 @@ jobs:
displayName: Print NumPy config
- script: python -c "import mne; mne.datasets.testing.data_path(verbose=True)"
displayName: 'Get test data'
- script: pytest -m "not slowtest" --tb=short --cov=mne -n 1 mne
- script: pytest -m "not slowtest" --tb=short --cov=mne mne
displayName: 'Run tests'
- script: codecov --root %BUILD_REPOSITORY_LOCALPATH% -t %CODECOV_TOKEN%
displayName: 'Codecov'
Expand Down
4 changes: 3 additions & 1 deletion mne/tests/test_docstring_parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ def _func_name(func, cls=None):
}
char_limit = 800 # XX eventually we should probably get this lower
tab_ignores = [
'mne.externals.tqdm._tqdm.__main__',
'mne.externals.tqdm._tqdm.cli',
'mne.channels.tests.test_montage',
'mne.io.curry.tests.test_curry',
]
Expand Down Expand Up @@ -172,7 +174,7 @@ def test_tabs():
('_coreg_gui', '_fiducials_gui', '_file_traits', '_help',
'_kit2fiff_gui', '_marker_gui', '_viewer'))

for importer, modname, ispkg in walk_packages(mne.__path__, prefix='mne.'):
for _, modname, ispkg in walk_packages(mne.__path__, prefix='mne.'):
# because we don't import e.g. mne.tests w/mne
if not ispkg and modname not in ignore:
# mod = importlib.import_module(modname) # not py26 compatible!
Expand Down
6 changes: 2 additions & 4 deletions requirements_testing.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
pytest!=4.6.0,<5.4
pytest!=4.6.0
pytest-cov
pytest-mock
pytest-sugar
pytest-timeout
pytest-xdist
flake8
https://github.com/larsoner/flake8-array-spacing/archive/master.zip
flake8-array-spacing
https://github.com/sphinx-gallery/sphinx-gallery/archive/master.zip
https://github.com/numpy/numpydoc/archive/master.zip
https://github.com/codespell-project/codespell/archive/master.zip
Expand Down

0 comments on commit 0b3ad03

Please sign in to comment.