-
Notifications
You must be signed in to change notification settings - Fork 105
50 lines (38 loc) · 1.22 KB
/
win-tests.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
name: Test Win
on:
pull_request:
push:
jobs:
build:
name: Frw-Tests (3.10 Win)
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: put ~/.local/bin on $PATH
run: echo "PATH=$HOME/.local/bin:$PATH" >> $GITHUB_ENV
- name: cache ~/.local for pip deps
id: cache-local
uses: actions/cache@v3
with:
path: ~/.local
key: pip-${{ hashFiles('tvb_framework/requirements.txt') }}
- name: install tools and dependencies
if: steps.cache-local.outputs.cache-hit != 'true'
run: |
python -m pip install --upgrade setuptools pip wheel
pip install -U numpy cython scikit-build
pip install -r tvb_framework/requirements.txt
pip install --no-build-isolation tvb-gdist
- name: run framework tests
shell: pwsh
run: |
cd tvb_build
cmd /k "install_full_tvb.bat"
cd ../tvb_framework
pytest tvb/tests/framework