Skip to content

Commit

Permalink
Add validation tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pgleeson committed Nov 27, 2024
1 parent 2ce3254 commit 54595e9
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/omv-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
fail-fast: false
matrix:
python-version: [ 3.7, 3.9 ]
engine: [ jNeuroML_validate, jNeuroML_NEURON, jNeuroML_EDEN ]
engine: [ jNeuroML_validate, jNeuroML_NEURON, jNeuroML_EDEN, pyNeuroML_validate_sbml ]

steps:
- uses: actions/checkout@v4
Expand Down
5 changes: 5 additions & 0 deletions SBML/.test.validate.sbml.omt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Script for running automated tests on OSB using github actions, see https://github.com/OpenSourceBrain/osb-model-validation

# This test will validate the SBML files in the current directory using: pynml -validate-sbml *.xml
target: "*.xml"
engine: pyNeuroML_validate_sbml
12 changes: 12 additions & 0 deletions SBML/validateAll.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash
set -ex

### A script to validate SBML & SED-ML files using pyNeuroML

pynml -validate-sbml *.xml

echo "All XML files are valid SBML"

pynml -validate-sedml *.sedml

echo "All SED-ML files are valid"

0 comments on commit 54595e9

Please sign in to comment.