Skip to content

Commit

Permalink
CI: Dont check for dev0 in maint branches (mne-tools#11003)
Browse files Browse the repository at this point in the history
* CI: Dont check for dev0 in maint branches [skip actions] [skip circle]

* FIX: Import check [skip actions] [skip circle]

* FIX: No need for extra print

* FIX: Forgot [skip actions] [skip circle]

* FIX: Err [skip actions] [skip circle]
  • Loading branch information
larsoner authored Aug 3, 2022
1 parent d57a3d6 commit ef8b971
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ stages:
set -e
which mne
mne sys_info -pd
mne sys_info -pd | grep "^mne: .*dev0.*$"
python ./tools/check_mne_location.py
displayName: Print config
- bash: source tools/get_testing_version.sh
displayName: 'Get testing version'
Expand Down
10 changes: 10 additions & 0 deletions tools/check_mne_location.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/usr/bin/env python

from pathlib import Path
import mne
want_mne_dir = Path(__file__).parent.parent / 'mne'
got_mne_dir = Path(mne.__file__).parent
want_mne_dir = want_mne_dir.resolve()
got_mne_dir = got_mne_dir.resolve()
print(f'Expected import mne from:\n{want_mne_dir}\nAnd got:\n{got_mne_dir}')
assert want_mne_dir == got_mne_dir

0 comments on commit ef8b971

Please sign in to comment.