Skip to content

Commit

Permalink
test caching in full tests
Browse files Browse the repository at this point in the history
  • Loading branch information
h-mayorquin committed Feb 18, 2023
1 parent 97a5475 commit 525b705
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/caches_cron_job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ jobs:
pip install datalad-installer
datalad-installer --sudo ok git-annex --method datalad/packages
pip install datalad
git config --global filter.annex.process "git-annex filter-process" # recommended for efficiency
- name: Download dataset
if: steps.cache-datasets.outputs.cache-hit != 'true'
run: |
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/core-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ jobs:
# pip install datalad
- name: Test core with pytest
run: |
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
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/full-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ jobs:
HASH_EPHY_DATASET: git ls-remote https://gin.g-node.org/NeuralEnsemble/ephy_testing_data.git HEAD | cut -f1
with:
path: ~/spikeinterface_datasets
key: ${{ runner.os }}-datasets-${{ steps.vars.outputs.HASH_EPHY_DATASET }}
key: ${{ runner.os }}-datasetsTEST-${{ steps.vars.outputs.HASH_EPHY_DATASET }}
restore-keys: |
${{ runner.os }}-datasets
- name: Check ephy_testing_data files
Expand All @@ -98,7 +98,7 @@ jobs:
- name: THE TEST THAT I WANT
run: |
source ~/test_env/bin/activate
pytest -rP spikeinterface/core/tests/test_datasets.py
pytest -rA spikeinterface/core/tests/test_datasets.py
- name: Module changes
id: modules-changed
run: |
Expand Down

0 comments on commit 525b705

Please sign in to comment.