From 131715fa00dd7f4894f2dee218da42df9655c14d Mon Sep 17 00:00:00 2001 From: Heberto Mayorquin Date: Mon, 24 Jul 2023 11:50:46 +0200 Subject: [PATCH] For the cronjob, avoid re-downloading the cache dataset if present (#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 --- .github/workflows/caches_cron_job.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/caches_cron_job.yml b/.github/workflows/caches_cron_job.yml index 3ed91b84c4..237612d5d3 100644 --- a/.github/workflows/caches_cron_job.yml +++ b/.github/workflows/caches_cron_job.yml @@ -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 @@ -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 @@ -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