-
Notifications
You must be signed in to change notification settings - Fork 24
62 lines (53 loc) · 1.78 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
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