Skip to content

Commit

Permalink
For the cronjob, avoid re-downloading the cache dataset if present (#…
Browse files Browse the repository at this point in the history
…1862)

* avoid downloading the dataset if present

* added to both caches

* Update .github/workflows/caches_cron_job.yml

* Update .github/workflows/caches_cron_job.yml
  • Loading branch information
h-mayorquin authored Jul 24, 2023
1 parent fecc213 commit 131715f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/caches_cron_job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ jobs:
with:
path: ${{ github.workspace }}/test_env
key: ${{ runner.os }}-venv-${{ steps.dependencies.outputs.hash }}-${{ steps.date.outputs.date }}
lookup-only: 'true' # Avoids downloading the data, saving behavior is not affected.
- name: Cache found?
run: echo "Cache-hit == ${{steps.cache-venv.outputs.cache-hit == 'true'}}"
- name: Create the virtual environment to be cached
Expand Down Expand Up @@ -64,6 +65,7 @@ jobs:
with:
path: ~/spikeinterface_datasets
key: ${{ runner.os }}-datasets-${{ steps.repo_hash.outputs.dataset_hash }}
lookup-only: 'true' # Avoids downloading the data, saving behavior is not affected.
- name: Cache found?
run: echo "Cache-hit == ${{steps.cache-datasets.outputs.cache-hit == 'true'}}"
- name: Installing datalad and git-annex
Expand All @@ -88,7 +90,7 @@ jobs:
run: |
cd $HOME
pwd
du -hs spikeinterface_datasets
du -hs spikeinterface_datasets # Should show the size of ephy_testing_data
cd spikeinterface_datasets
pwd
ls -lh # Should show ephy_testing_data
Expand Down

0 comments on commit 131715f

Please sign in to comment.