chore: add spikeThresh #222
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build all NML Java | |
on: | |
push: | |
branches: [ master, development, experimental, documentation_update, osb* ] | |
pull_request: | |
branches: [ master, development, experimental, documentation_update, osb* ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
java: [ '8', '11', '16', '17', '19' ] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up JDK ${{ matrix.java }} | |
uses: actions/setup-java@v3 | |
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 |