-
Notifications
You must be signed in to change notification settings - Fork 6
49 lines (46 loc) · 1.4 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
40
41
42
43
44
45
46
47
48
49
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: |
# Get NEURON major version
NRNVER=$(python -c 'import neuron; print(neuron.__version__.split(".")[0])')
echo "NEURON major version: ${NRNVER}"
if [ "$NRNVER" -ge 9 ]; then
# 8.2 coreneuron mod files comment out TABLE statements
# so only do the tests if >= 9
# 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
fi