-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* run publish on 3.11 and check befor eupload * run stubs on 3.11 * make dataset caching DRY
- Loading branch information
1 parent
16b9e42
commit 02d0bc1
Showing
4 changed files
with
31 additions
and
34 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: "Get MNE testing dataset" | ||
description: "A composite action to get MNE testing dataset from cache or remote." | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Get testing dataset version | ||
shell: bash | ||
run: curl https://raw.githubusercontent.com/mne-tools/mne-testing-data/master/version.txt -o mne_testing_data_version.txt | ||
- name: Cache testing dataset | ||
id: cache | ||
uses: actions/cache@v4 | ||
with: | ||
key: mne-testing-${{ runner.os }}-${{ hashFiles('mne_testing_data_version.txt') }} | ||
path: ~/mne_data | ||
- name: Download testing dataset | ||
if: steps.cache.outputs.cache-hit != 'true' | ||
shell: bash | ||
run: python -c "import mne; mne.datasets.testing.data_path(verbose=True)" | ||
- name: Remove dataset version file | ||
shell: bash | ||
run: rm mne_testing_data_version.txt |
This file contains 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
This file contains 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
This file contains 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