Skip to content

Add vpython as dependency for only integrators_presentation.ipynb #1782

Add vpython as dependency for only integrators_presentation.ipynb

Add vpython as dependency for only integrators_presentation.ipynb #1782

Workflow file for this run

name: Test lib
on: [push]
jobs:
lib-tests:
runs-on: self-hosted
steps:
- name: nvidia-smi test
run: nvidia-smi
- name: pycuda test
run: python3 -c "import pycuda.autoinit; print('yes')"
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: put ~/.local/bin on $PATH
run: echo "PATH=$HOME/.local/bin:$PATH" >> $GITHUB_ENV
- name: setup env with pipenv
run: |
python3 -V
python3 -m pip install --upgrade pip
pip3 install pipenv
cd tvb_library && pipenv install -d --python $(which python3)
- name: download data
run: |
wget -q https://zenodo.org/record/7574266/files/tvb_data.zip?download=1 -O tvb_data.zip
mkdir tvb_data
unzip tvb_data.zip -d tvb_data
rm tvb_data.zip
- name: setup data
run: |
cd tvb_library && pipenv run bash -c 'cd ../tvb_data && python3 setup.py develop'
- name: importlib_metadata?
run: cd tvb_library && pipenv install importlib_metadata
- name: run library tests
run: cd tvb_library && pipenv run python3 -m pytest -n12 --ignore=tvb/tests/library/simulator/rateml_test.py
- name: run library benchmarks
run: cd tvb_library && pipenv run python3 -m pytest --benchmark-only --ignore=tvb/tests/library/simulator/rateml_test.py
- name: run rateml tests
run: cd tvb_library && pipenv run bash -c 'pipenv install pycuda && cd tvb/tests/library/simulator/ && pytest rateml_test.py'
- name: run contrib tests
run: cd tvb_library && pipenv run bash -c 'pipenv install xarray deprecated && python setup.py develop --no-deps && cd ../tvb_contrib && python3 -m pytest'