Skip to content

Add examples with tests for various ways to include <morphology> and … #260

Add examples with tests for various ways to include <morphology> and …

Add examples with tests for various ways to include <morphology> and … #260

Workflow file for this run

name: Build all NML Java
on:
push:
branches: [ master, development, experimental, documentation_update, osb*, update* ]
pull_request:
branches: [ master, development, experimental, documentation_update, osb*, update* ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
java: [ '8', '11', '16', '17', '19', '21' ]
steps:
- uses: actions/checkout@v4
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java }}
java-package: jdk
distribution: 'adopt'
- name: Install NeuroML 2 with Maven
run: |
java -version
mvn install
- name: Install jNeuroML
run: |
export main_repo_branch=${GITHUB_REF##*/}
if [[ ${main_repo_branch} != "master" && ${main_repo_branch} != "development" && ${main_repo_branch} != "experimental" && ${main_repo_branch} != *"osb"* ]]; then main_repo_branch=development ; fi
echo Using branch $main_repo_branch
git clone https://github.com/NeuroML/jNeuroML.git
cd jNeuroML
git checkout $main_repo_branch
python getNeuroML.py $main_repo_branch # will call mvn install on this & other repos
ls -alt
mvn dependency:tree
./jnml -v
cd ..
- name: Install OMV
run: |
pwd
echo $GITHUB_WORKSPACE
export PATH=$PATH:$GITHUB_WORKSPACE/jNeuroML
export JNML_HOME=$GITHUB_WORKSPACE/jNeuroML
pip install git+https://github.com/OpenSourceBrain/osb-model-validation
omv list -V
env
pip freeze
- name: Test examples using OMV
run: |
cd $GITHUB_WORKSPACE/NeuroML2/LEMSexamples
omv all -V --engine=jNeuroML --ignore-non-py3
omv list -V