Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .github/workflows/core-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@ jobs:
strategy:
fail-fast: true
matrix:
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
os: ["ubuntu-latest", "windows-latest"]
# "macos-latest",
python-version: ['3.7', '3.8', '3.9']
numpy-version: ['1.16.6', '1.19.5', '1.20.3', '1.21.5', '1.22.3']
numpy-version: ['1.16.6', '1.17.5', '1.18.5', '1.19.5', '1.20.3', '1.21.5', '1.22.3']
exclude:
- python-version: '3.7'
numpy-version: '1.22.3'
Expand Down
17 changes: 14 additions & 3 deletions .github/workflows/full-test.yml → .github/workflows/io-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,20 @@ jobs:
matrix:
# "macos-latest", "windows-latest"
os: ["ubuntu-latest", ]
python-version: ['3.8', ]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: 3.8
python-version: ${{ matrix.python-version }}

- name: Checkout repository
uses: actions/checkout@v2

- name: Get current year-month
id: date
run: echo "::set-output name=date::$(date+'%Y-%m')"
run: echo "::set-output name=date::$(date +'%Y-%m')"

- uses: actions/cache@v2
# the cache for python package is reset:
# * every month
Expand All @@ -36,6 +43,7 @@ jobs:
key: ${{ runner.os }}-venv-${{ hashFiles('**/requirements.txt') }}-${{ hashFiles('**/requirements_testing.txt') }}-${{ steps.date.outputs.date }}
restore-keys: |
${{ runner.os }}-venv-

- name: Install dependencies
run: |
# this is for datalad and download testing datasets
Expand All @@ -50,18 +58,21 @@ jobs:
# pip install -r requirements.txt
pip install -r requirements_testing.txt
pip install -e .

- name: Get ephy_testing_data current head hash
# the key depend on the last comit repo https://gin.g-node.org/NeuralEnsemble/ephy_testing_data.git
id: vars
run: |
echo "::set-output name=HASH_EPHY_DATASET::$(git ls-remote https://gin.g-node.org/NeuralEnsemble/ephy_testing_data.git HEAD | cut -f1)"

- uses: actions/cache@v2
id: cache-datasets
with:
path: ~/ephy_testing_data
key: ${{ runner.os }}-datasets-${{ steps.vars.outputs.HASH_EPHY_DATASET }}
restore-keys: |
${{ runner.os }}-datasets

- name: Test with pytest
run: |
source ~/test_env/bin/activate
Expand Down