forked from the-virtual-brain/tvb-root
-
Notifications
You must be signed in to change notification settings - Fork 0
64 lines (56 loc) · 2.01 KB
/
notebooks.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: Test Notebooks
on: [push]
jobs:
build:
name: Test and Inspect
runs-on: windows-latest
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: set up Python 3.8
uses: actions/setup-python@v4
id: setPy
with:
python-version: "3.8"
- name: put ~/.local/bin on $PATH
run: echo "PATH=$HOME/.local/bin:$PATH" >> $GITHUB_ENV
- name: install tools and dependencies
run: |
python3 -m pip install --upgrade setuptools==59.8.0 pip wheel
pip3 install --user --upgrade numpy
python3 -m pip install scikit-build
pip3 install --user -r tvb_framework/requirements.txt
pip3 install --user --no-build-isolation tvb-gdist
python3 -m pip install elasticsearch
python3 -m pip install nbformat nbconvert
pip3 install ipympl seaborn
pip3 install --upgrade pip ipython ipykernel
ipython kernel install --name "python3" --user
- name: setup tvb
shell: pwsh
run: |
cd tvb_build
cmd /k "install_full_tvb.bat"
- name: cache data
id: cache-data
uses: actions/cache@v3
with:
path: tvb_data
key: tvbdata
- name: download data
if: steps.cache-data.outputs.cache-hit != 'true'
shell: pwsh
run: |
Invoke-WebRequest -OutFile C:\\TEMP\\tvb_data.zip -Uri "https://zenodo.org/record/10128131/files/tvb_data.zip?download=1"
Expand-Archive 'C:\\TEMP\\tvb_data.zip' C:\\tvb_data
del C:\\TEMP\\tvb_data.zip
cd C:\\tvb_data
python setup.py develop
- name: run notebooks
env:
HBP_AUTH_TOKEN: ${{ secrets.HBP_AUTH_TOKEN }} # token or (secret+id) are needed for siibra tests
run: |
python ./tvb_build/notebook_runner.py ./tvb_documentation/demos siibra