Skip to content

Commit

Permalink
long test
Browse files Browse the repository at this point in the history
  • Loading branch information
h-mayorquin committed Feb 18, 2023
1 parent 7916874 commit 061ed74
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
14 changes: 8 additions & 6 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/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
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
- uses: actions/cache@v3
id: cache-datasets
with:
path: ~/spikeinterface_datasets
key: ${{ runner.os }}-datasets-${{ steps.repo_hash.outputs.dataset_hash }}
key: ${{ runner.os }}-datasetsTEST-${{ 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,17 +78,19 @@ jobs:
- name: Download dataset
if: steps.cache-datasets.outputs.cache-hit != 'true'
run: |
datalad install --recursive --get-data https://gin.g-node.org/CatalystNeuro/behavior_testing_data
datalad install --recursive --get-data https://gin.g-node.org/NeuralEnsemble/ephy_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 ./behavior_testing_data ~/spikeinterface_datasets/
mv --force ./ephy_testing_data ~/spikeinterface_datasets/
- name: Show size of the cache to assert data is downloaded
run: |
cd ~
pwd
du -hs spikeinterface_datasets
cd spikeinterface_datasets
pwd
ls -l # Should show /ephy_testing_data
ls -lh # Should show /ephy_testing_data
cd /ephy_testing_data
ls -lh
3 changes: 2 additions & 1 deletion .github/workflows/core-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ jobs:
shell: bash # Necessary for pipeline to work on windows
- name: Test core with pytest
run: |
pytest --capture=tee-sys --full-trace -vv spikeinterface/core --durations=0 --durations-min=0.001 > report.txt
pytest -rA spikeinterface/core/tests/test_datasets.py
pytest --capture=tee-sys --full-trace -vv -rA spikeinterface/core --durations=0 --durations-min=0.001 > report.txt
cat report.txt
- name: Build test summary
run: |
Expand Down

0 comments on commit 061ed74

Please sign in to comment.