Skip to content

Commit f5330d6

Browse files
Merge pull request #1096 from samuelgarcia/fix_gh_actions
Fix gh actions
2 parents 1c37bb6 + f168e4b commit f5330d6

File tree

2 files changed

+17
-5
lines changed

2 files changed

+17
-5
lines changed

.github/workflows/core-test.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,10 @@ jobs:
1818
strategy:
1919
fail-fast: true
2020
matrix:
21-
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
21+
os: ["ubuntu-latest", "windows-latest"]
22+
# "macos-latest",
2223
python-version: ['3.7', '3.8', '3.9']
23-
numpy-version: ['1.16.6', '1.19.5', '1.20.3', '1.21.5', '1.22.3']
24+
numpy-version: ['1.16.6', '1.17.5', '1.18.5', '1.19.5', '1.20.3', '1.21.5', '1.22.3']
2425
exclude:
2526
- python-version: '3.7'
2627
numpy-version: '1.22.3'
Lines changed: 14 additions & 3 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
28-
run: echo "::set-output name=date::$(date+'%Y-%m')"
34+
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)