-
Notifications
You must be signed in to change notification settings - Fork 6
39 lines (39 loc) · 1.06 KB
/
ci.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
name: Test ringtest using NEURON wheels
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
ci:
name: ${{matrix.os}} / ${{matrix.version}}
runs-on: ${{matrix.os}}
strategy:
matrix:
os: [ubuntu-22.04]
version: [neuron, neuron-nightly]
timeout-minutes: 5
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.11
- name: Install NEURON
run: |
python -m pip install --upgrade pip
python -m pip install "${{matrix.version}}"
- name: Build .mod files
run: |
nrnivmodl -coreneuron mod/
- name: Run ringtest
run: |
# Test NEURON
python ringtest.py -tstop 100
diff spk1.std reference_data/spk1.100ms.std.ref
# Test CoreNEURON
python ringtest.py -coreneuron -tstop 100
sortspike spk1.std spk1.coreneuron.std
diff spk1.coreneuron.std reference_data/spk1.100ms.std.ref