-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'experimental' into test_neuroml
- Loading branch information
Showing
14 changed files
with
24 additions
and
19 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -12,8 +12,8 @@ jobs: | |
name: Format | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v3 | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
- uses: pre-commit/[email protected] | ||
with: | ||
extra_args: --hook-stage manual --all-files | ||
|
@@ -24,16 +24,17 @@ jobs: | |
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: [ "3.7", "3.8", "3.9", "3.10", "3.11", "3.12"] | ||
python-version: [ "3.8", "3.9", "3.10", "3.11", "3.12" ] | ||
runs-on: [ubuntu-latest, macos-latest, windows-latest] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v3 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
|
||
- name: Install package | ||
run: | | ||
python -m pip install --upgrade pip | ||
|
@@ -51,12 +52,12 @@ jobs: | |
run: | | ||
cd examples | ||
python document.py | ||
git diff | ||
cd test | ||
python test.py | ||
- name: Test NeuroML examples | ||
if: ${{ matrix.python-version != '3.7'}} | ||
run: | | ||
cd examples/neuroml2 | ||
|
@@ -65,21 +66,20 @@ jobs: | |
# Note: NeuroML files will be validated with OMV below | ||
- name: Test SBML examples | ||
if: ${{ matrix.python-version != '3.7'}} | ||
run: | | ||
cd examples/sbml | ||
./regenerateAndTest.sh | ||
- name: Run pytest | ||
run: | | ||
pytest tests | ||
pytest tests -v | ||
- name: Install & test NeuroMLlite | ||
- name: Test NeuroMLlite | ||
run: | | ||
git clone --branch development https://github.com/NeuroML/NeuroMLlite.git | ||
cd NeuroMLlite | ||
#pip install . # Use versions of neuroml libs as set in setup.py | ||
# pip install . # Use versions of neuroml libs as set in modelspec's setup.cfg -> dev -> NeuroMLlite | ||
cd examples | ||
python Example1.py | ||
|
@@ -93,7 +93,6 @@ jobs: | |
python arrays.py -run # test one example | ||
- name: Build Documentation | ||
if: ${{ matrix.python-version != '3.7'}} | ||
run: | | ||
# Note: contributors generation below fails on py 3.7 due to pandas version... | ||
pip install .[docs] | ||
|
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
Binary file not shown.
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 |
---|---|---|
@@ -1,6 +1,7 @@ | ||
{ | ||
"MyBook": { | ||
"title": "My life in Python", | ||
"ISBN": 123, | ||
"sections": { | ||
"Abstract": { | ||
"paragraphs": [ | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
MyBook: | ||
title: My life in Python | ||
ISBN: 123 | ||
sections: | ||
Abstract: | ||
paragraphs: | ||
|
Binary file not shown.
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 |
---|---|---|
@@ -1,6 +1,7 @@ | ||
{ | ||
"MyBook": { | ||
"title": "My life in Python", | ||
"ISBN": 123, | ||
"sections": { | ||
"Abstract": { | ||
"paragraphs": [ | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
MyBook: | ||
title: My life in Python | ||
ISBN: 123 | ||
sections: | ||
Abstract: | ||
paragraphs: | ||
|
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