From 1c612d530acfd09dcb39bc0338710573f97a0cc9 Mon Sep 17 00:00:00 2001
From: pgleeson
Date: Wed, 9 Oct 2024 10:44:59 +0100
Subject: [PATCH] Add tests
---
.github/workflows/omv-ci.yml | 42 ++++++++++++++++++++++++++++++++++++
1 file changed, 42 insertions(+)
create mode 100644 .github/workflows/omv-ci.yml
diff --git a/.github/workflows/omv-ci.yml b/.github/workflows/omv-ci.yml
new file mode 100644
index 0000000..9be476d
--- /dev/null
+++ b/.github/workflows/omv-ci.yml
@@ -0,0 +1,42 @@
+
+name: Continuous build using OMV
+
+on:
+ schedule:
+ - cron: "1 1 1 */2 *"
+ push:
+ branches: [ main, development, experimental ]
+ pull_request:
+ branches: [ main, development, experimental ]
+
+jobs:
+ build:
+
+ runs-on: ubuntu-latest
+ strategy:
+ fail-fast: false
+ matrix:
+ python-version: [ 3.7, 3.9 ]
+ 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
+ pip install scipy sympy matplotlib cython pandas tables
+
+ - 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