forked from jonescompneurolab/hnn-core
-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (40 loc) · 1.22 KB
/
windows_unit_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
name: Unit test
on:
push:
branches: ['**']
pull_request:
branches: ['**']
env:
PYTHONPATH: C:\nrn_test\lib\python
NEURONHOME: C:\nrn_test
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest]
python-version: [3.8, 3.11, 3.12]
steps:
- uses: actions/checkout@v4
- uses: conda-incubator/setup-miniconda@v3
with:
activate-environment: test
python-version: ${{ matrix.python-version }}
- name: Install Neuron on Windows separately
shell: cmd
run: |
powershell -command "gh release download --repo https://github.com/neuronsimulator/nrn --pattern '*.exe' --output nrn-setup.exe"
start /b /wait .\nrn-setup.exe /S /D=C:\nrn_test
powershell -command "'C:\nrn_test\bin' >> $env:GITHUB_PATH"
python -c "import neuron"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Install dependencies and HNN
shell: cmd
run: |
python -m pip install --upgrade pip
pip install --verbose .[opt,parallel,test,gui]
- name: Test with pytest
shell: cmd
run: |
python -m pytest ./hnn_core/tests/