@@ -19,14 +19,40 @@ jobs:
1919 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
2020 COVERALLS_REPO_TOKEN : ${{ secrets.COVERALLS_REPO_TOKEN }}
2121 COVERALLS_FLAG_NAME : python-${{ matrix.python-version }}
22+ ZENODO_RECORD_ID : 17423608
2223 steps :
2324 - uses : actions/checkout@v4
2425 - uses : ./.github/actions/install_eitprocessing
2526 with :
2627 dependencies : testing
27- extract-data : true
2828 python-version : ${{ matrix.python-version }}
2929 token : ${{ secrets.GITHUB_TOKEN }}
30+ - name : Set data dir
31+ shell : bash
32+ id : set-path
33+ run : echo "data_dir=$GITHUB_WORKSPACE/test_data" >> "$GITHUB_OUTPUT"
34+ - name : Restore dataset cache
35+ id : cache
36+ uses : actions/cache@v4
37+ with :
38+ path : ${{ steps.set-path.outputs.data_dir }}
39+ key : eitprocessing-testdata-zenodo.$ZENODO_RECORD_ID
40+ - name : Install zenodo-get
41+ if : steps.cache.outputs.cache-hit != 'true'
42+ run : python3 -m pip install zenodo-get
43+ shell : bash
44+ - name : Download test dataset
45+ shell : bash
46+ if : steps.cache.outputs['cache-hit'] != 'true'
47+ run : |
48+ mkdir -p ${{ steps.set-path.outputs.data_dir }}
49+ cd ${{ steps.set-path.outputs.data_dir }}
50+ zenodo_get $ZENODO_RECORD_ID
51+ cd -
52+ - name : Uninstall zenodo-get
53+ if : steps.cache.outputs['cache-hit'] != 'true'
54+ run : python3 -m pip uninstall --yes zenodo-get
55+ shell : bash
3056 - name : Run coveralls
3157 run : |
3258 pytest --cov --cov-report xml --cov-report term --cov-report html
0 commit comments