Skip to content

Commit f168e4b

Browse files
committed
More clean on io-test
1 parent 8e6d259 commit f168e4b

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

.github/workflows/io-test.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,20 @@ jobs:
1919
matrix:
2020
# "macos-latest", "windows-latest"
2121
os: ["ubuntu-latest", ]
22+
python-version: ['3.8', ]
2223
steps:
23-
- uses: actions/checkout@v2
24+
- name: Set up Python ${{ matrix.python-version }}
25+
uses: actions/setup-python@v2
2426
with:
25-
python-version: 3.8
27+
python-version: ${{ matrix.python-version }}
28+
29+
- name: Checkout repository
30+
uses: actions/checkout@v2
31+
2632
- name: Get current year-month
2733
id: date
2834
run: echo "::set-output name=date::$(date +'%Y-%m')"
35+
2936
- uses: actions/cache@v2
3037
# the cache for python package is reset:
3138
# * every month
@@ -36,6 +43,7 @@ jobs:
3643
key: ${{ runner.os }}-venv-${{ hashFiles('**/requirements.txt') }}-${{ hashFiles('**/requirements_testing.txt') }}-${{ steps.date.outputs.date }}
3744
restore-keys: |
3845
${{ runner.os }}-venv-
46+
3947
- name: Install dependencies
4048
run: |
4149
# this is for datalad and download testing datasets
@@ -50,18 +58,21 @@ jobs:
5058
# pip install -r requirements.txt
5159
pip install -r requirements_testing.txt
5260
pip install -e .
61+
5362
- name: Get ephy_testing_data current head hash
5463
# the key depend on the last comit repo https://gin.g-node.org/NeuralEnsemble/ephy_testing_data.git
5564
id: vars
5665
run: |
5766
echo "::set-output name=HASH_EPHY_DATASET::$(git ls-remote https://gin.g-node.org/NeuralEnsemble/ephy_testing_data.git HEAD | cut -f1)"
67+
5868
- uses: actions/cache@v2
5969
id: cache-datasets
6070
with:
6171
path: ~/ephy_testing_data
6272
key: ${{ runner.os }}-datasets-${{ steps.vars.outputs.HASH_EPHY_DATASET }}
6373
restore-keys: |
6474
${{ runner.os }}-datasets
75+
6576
- name: Test with pytest
6677
run: |
6778
source ~/test_env/bin/activate

0 commit comments

Comments
 (0)