Skip to content

Commit e62a3d2

Browse files
committed
Add omv tests for vlaidity of neuroml
1 parent d4bbe40 commit e62a3d2

File tree

3 files changed

+21
-1
lines changed

3 files changed

+21
-1
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ jobs:
7878
cd examples
7979
python Example1.py
8080
81-
8281
- name: Install MDF
8382
run: |
8483
@@ -100,6 +99,16 @@ jobs:
10099
make clean
101100
make html
102101
102+
- name: Install and test with OMV
103+
run: |
104+
pip install git+https://github.com/OpenSourceBrain/osb-model-validation
105+
pip install scipy sympy matplotlib cython pandas tables
106+
107+
# Run OMV tests on all engines
108+
omv all -V
109+
110+
omv list -V # list installed engines
111+
103112
- name: Final version info
104113
run: |
105114
pip list

examples/neuroml2/.test.validate.omt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Script for running automated tests on OSB using Travis-CI, see https://github.com/OpenSourceBrain/osb-model-validation
2+
3+
# This test will validate NeuroML 2 files in the current directory using: jnml -validate *.nml
4+
target: "*.nml TestNeuroML.xml"
5+
engine: jNeuroML_validate

test_all.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ cd ../..
3131

3232
pytest tests -v
3333

34+
## Run OMV tests
35+
36+
omv all -V
37+
3438

3539
## Generate the docs
3640

@@ -42,4 +46,6 @@ make clean
4246
make html
4347
cd ..
4448

49+
## Format all file
50+
4551
pre-commit run --all-files

0 commit comments

Comments
 (0)