Skip to content

Commit

Permalink
shorter testing data
Browse files Browse the repository at this point in the history
  • Loading branch information
h-mayorquin committed Feb 18, 2023
1 parent 8fa1f38 commit 7916874
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/caches_cron_job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,13 @@ jobs:
- name: Get current hash (SHA) of the ephy_testing_data repo
id: repo_hash
run: |
echo "dataset_hash=$(git ls-remote https://gin.g-node.org/NeuralEnsemble/ephy_testing_data.git HEAD | cut -f1)"
echo "dataset_hash=$(git ls-remote https://gin.g-node.org/NeuralEnsemble/ephy_testing_data.git HEAD | cut -f1)" >> $GITHUB_OUTPUT
echo "dataset_hash=$(git ls-remote https://gin.g-node.org/CatalystNeuro/behavior_testing_data HEAD | cut -f1)"
echo "dataset_hash=$(git ls-remote https://gin.g-node.org/CatalystNeuro/behavior_testing_data HEAD | cut -f1)" >> $GITHUB_OUTPUT
- uses: actions/cache@v3
id: cache-datasets
with:
path: ~/spikeinterface_datasets
key: ${{ runner.os }}-datasetsTEST-${{ steps.repo_hash.outputs.dataset_hash }}
key: ${{ runner.os }}-datasets-${{ steps.repo_hash.outputs.dataset_hash }}
- name: Cache found?
run: echo "Cache-hit == ${{steps.cache-datasets.outputs.cache-hit == 'true'}}"
- name: Installing datalad and git-annex
Expand All @@ -78,12 +78,12 @@ jobs:
- name: Download dataset
if: steps.cache-datasets.outputs.cache-hit != 'true'
run: |
datalad install --recursive --get-data https://gin.g-node.org/NeuralEnsemble/ephy_testing_data
datalad install --recursive --get-data https://gin.g-node.org/CatalystNeuro/behavior_testing_data
- name: Move the downloaded data to the right directory
if: steps.cache-datasets.outputs.cache-hit != 'true'
run: |
mkdir --parents --verbose ~/spikeinterface_datasets/ephy_testing_data/
mv --force ./ephy_testing_data ~/spikeinterface_datasets/
mv --force ./behavior_testing_data ~/spikeinterface_datasets/
- name: Show size of the cache to assert data is downloaded
run: |
cd ~
Expand Down

0 comments on commit 7916874

Please sign in to comment.