Skip to content

Commit

Permalink
FIX: Cache
Browse files Browse the repository at this point in the history
  • Loading branch information
larsoner committed Apr 2, 2024
1 parent 4cdcb70 commit 0bb36e5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,20 @@ jobs:
python=${{ matrix.python }}
if: matrix.kind == 'conda'
- run: pip install -r requirements_testing.txt
- run: pip install --upgrade --pre git+https://github.com/mne-tools/mne-python git+https://github.com/nilearn/nilearn
- run: git clone https://github.com/mne-tools/mne-python
- run: pip install --upgrade --pre ./mne-python git+https://github.com/nilearn/nilearn
if: matrix.mne == 'dev'
name: Install MNE and nilearn dev
# - run: pip install --upgrade --pre --force --only-binary=":all:" --index-url "https://pypi.anaconda.org/scientific-python-nightly-wheels/simple" "numpy>=2.0.0rc1" scipy h5py matplotlib pandas scikit-learn statsmodels "tables>=3.9.3.dev0"
# if: matrix.mne == 'dev' && startsWith(matrix.os, 'ubuntu')
# name: Install numpy, scipy, nilearn pre
- run: pip install -ve .
- run: mne sys_info
- run: ./mne-python/tools/get_testing_version.sh
- uses: actions/cache@v4
with:
key: ${{ env.TESTING_VERSION }}
path: ~/mne_data
- run: ./tools/github_actions_download.sh
- run: pytest --cov=mne_nirs --cov-report xml -vv -m "not examples" "mne_nirs/"
- uses: codecov/codecov-action@v1
Expand Down
1 change: 1 addition & 0 deletions tools/github_actions_download.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ fi
python -c 'from mne_nirs.datasets import fnirs_motor_group; fnirs_motor_group.data_path(force_update=True)'
python -c 'from mne_nirs.datasets import block_speech_noise; block_speech_noise.data_path(force_update=True)'
python -c 'from mne_nirs.datasets import audio_or_visual_speech; audio_or_visual_speech.data_path(force_update=True)'
python -c "from mne.datasets import fnirs_motor; fnirs_motor.data_path()"

0 comments on commit 0bb36e5

Please sign in to comment.