Skip to content

Commit

Permalink
Add omv tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pgleeson committed Jun 27, 2024
1 parent 53f67ba commit 3ef1e59
Show file tree
Hide file tree
Showing 5 changed files with 65 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/omv-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@

name: Continuous build using OMV

on:
schedule:
- cron: "1 1 1 */2 *"
push:
branches: [ main, development, experimental, test* ]
pull_request:
branches: [ main, development, experimental, test* ]

jobs:
build:

runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: [ 3.9, "3.11" ]
engine: [ jNeuroML_validate, jNeuroML_NEURON, jNeuroML_EDEN ]

steps:
- uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Install OMV
run: |
pip install git+https://github.com/OpenSourceBrain/osb-model-validation
- name: Run OMV tests on engine ${{ matrix.engine }}
run: |
omv all -V --engine=${{ matrix.engine }}
- name: OMV final version info
run: |
omv list -V # list installed engines
env
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,6 @@ build
arm64
/spherSomaSwc/NeuroML2/*.dat
/spherSomaSwc/NeuroML2/simulator.props
*_code.gen.c
*_code.gen.so
*_eden.py
8 changes: 8 additions & 0 deletions spherSomaSwc/NeuroML2/.test.jnmleden.omt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Script for running automated tests on OSB, see https://github.com/OpenSourceBrain/osb-model-validation

target: LEMS_pyrfull_out.xml
engine: jNeuroML_EDEN




8 changes: 8 additions & 0 deletions spherSomaSwc/NeuroML2/.test.jnmlnrn.omt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Script for running automated tests on OSB, see https://github.com/OpenSourceBrain/osb-model-validation

target: LEMS_pyrfull_out.xml
engine: jNeuroML_NEURON




5 changes: 5 additions & 0 deletions spherSomaSwc/NeuroML2/.test.validate.omt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Script for running automated tests on OSB, see https://github.com/OpenSourceBrain/osb-model-validation

# This test will validate all of the NeuroML 2 files in the current directory using: jnml -validate *.nml
target: "*.nml"
engine: jNeuroML_validate

0 comments on commit 3ef1e59

Please sign in to comment.