-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #101 from LEMS/development
NeuroML 2.2 release
- Loading branch information
Showing
19 changed files
with
258 additions
and
207 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
# This workflow will build a Java project with Maven | ||
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven | ||
|
||
name: Java CI with Maven | ||
|
||
on: | ||
push: | ||
branches: [ master, development, experimental, osb* ] | ||
pull_request: | ||
branches: [ master, development, experimental, osb* ] | ||
|
||
jobs: | ||
build_and_test: | ||
|
||
runs-on: ${{ matrix.runs-on }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
java: [ '8', '11', '16', '17' ] | ||
runs-on: [ubuntu-latest, macos-11, windows-latest] | ||
|
||
name: Test on Java ${{ matrix.Java }} on ${{ matrix.runs-on }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up JDK ${{ matrix.Java }} | ||
uses: actions/setup-java@v2 | ||
with: | ||
java-version: ${{ matrix.Java }} | ||
distribution: 'adopt' | ||
- name: Test with Maven | ||
run: mvn install | ||
- name: Further tests, non Win | ||
if: ${{ matrix.runs-on != 'windows-latest' }} | ||
run: | | ||
pwd | ||
ls -alt | ||
mvn dependency:tree | ||
./lems src/test/resources/example1.xml -nogui | ||
./lems src/test/resources/example2.xml -nogui | ||
./lems src/test/resources/example3.xml -nogui | ||
./lems src/test/resources/example4.xml -nogui | ||
./lems src/test/resources/example5.xml -nogui | ||
./lems src/test/resources/example6.xml -nogui | ||
./lems src/test/resources/example7.xml -nogui | ||
./lems src/test/resources/example8.xml -nogui | ||
./lems src/test/resources/bounce-conditional.xml -nogui | ||
./lems src/test/resources/bounce.xml -nogui | ||
./lems src/test/resources/ex-flat.xml -nogui | ||
./lems src/test/resources/test_regime_iaf.xml -nogui | ||
./lems src/test/resources/ex-properties.xml -nogui | ||
- name: Further tests, Windows | ||
if: ${{ matrix.runs-on == 'windows-latest' }} | ||
run: | | ||
pwd | ||
dir | ||
mvn dependency:tree | ||
./lems.bat src\test\resources\example1.xml -nogui | ||
./lems.bat src\test\resources\eexample2.xml -nogui | ||
./lems.bat src\test\resources\example3.xml -nogui | ||
./lems.bat src\test\resources\example4.xml -nogui | ||
./lems.bat src\test\resources\example5.xml -nogui | ||
./lems.bat src\test\resources\example6.xml -nogui | ||
./lems.bat src\test\resources\example7.xml -nogui | ||
./lems.bat src\test\resources\example8.xml -nogui | ||
./lems.bat src\test\resources\bounce-conditional.xml -nogui | ||
./lems.bat src\test\resources\bounce.xml -nogui | ||
./lems.bat src\test\resources\ex-flat.xml -nogui | ||
./lems.bat src\test\resources\test_regime_iaf.xml -nogui | ||
./lems.bat src\test\resources\ex-properties.xml -nogui |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# Check that examples are same in LEMS and in jlems | ||
name: Check LEMS examples | ||
|
||
on: | ||
push: | ||
branches: [ master, development, experimental ] | ||
|
||
jobs: | ||
verify: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: nelonoel/branch-name@v1.0.1 | ||
|
||
# https://stackoverflow.com/questions/58033366/how-to-get-current-branch-within-github-actions | ||
- name: Extract branch name | ||
shell: bash | ||
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})" | ||
id: extract_branch | ||
|
||
- name: Checkout lems | ||
uses: actions/checkout@v2 | ||
with: | ||
repository: LEMS/LEMS | ||
ref: ${{ steps.extract_branch.outputs.branch }} | ||
path: LEMS | ||
|
||
- name: check examples | ||
run: | | ||
for ex in "example1.xml" "example2.xml" "example3.xml" "example4.xml" "example5.xml" "example6.xml" "example7.xml" "example8.xml" "SimpleNetwork.xml" "SingleSimulation.xml" "elecdims.xml" "ex2dims.xml" "hhaltgate.xml" "hhcell.xml" "hhchannel.xml" "hhmodels.xml" "misciaf.xml" "spikegenerators.xml"; do | ||
if ! diff -ur "LEMS/examples/$ex" "src/test/resources/$ex" ; then | ||
echo "Example file $ex is not identical" | ||
exit -1 | ||
fi | ||
done |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,3 +9,6 @@ tst.txt | |
.DS_Store | ||
src/main/java/META-INF | ||
/nb-configuration.xml | ||
.classpath | ||
.project | ||
.settings/ |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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
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
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
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
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
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
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
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
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
Oops, something went wrong.