Skip to content

Commit 1489e57

Browse files
committed
Merge branch 'experimental' into test_neuroml
2 parents 79a8553 + 3746060 commit 1489e57

File tree

14 files changed

+24
-19
lines changed

14 files changed

+24
-19
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ jobs:
1212
name: Format
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/checkout@v3
16-
- uses: actions/setup-python@v3
15+
- uses: actions/checkout@v4
16+
- uses: actions/setup-python@v5
1717
- uses: pre-commit/[email protected]
1818
with:
1919
extra_args: --hook-stage manual --all-files
@@ -24,16 +24,17 @@ jobs:
2424
strategy:
2525
fail-fast: false
2626
matrix:
27-
python-version: [ "3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
27+
python-version: [ "3.8", "3.9", "3.10", "3.11", "3.12" ]
2828
runs-on: [ubuntu-latest, macos-latest, windows-latest]
2929

3030
steps:
31-
- uses: actions/checkout@v3
31+
- uses: actions/checkout@v4
3232
- name: Set up Python ${{ matrix.python-version }}
33-
uses: actions/setup-python@v3
33+
uses: actions/setup-python@v5
3434
with:
3535
python-version: ${{ matrix.python-version }}
3636

37+
3738
- name: Install package
3839
run: |
3940
python -m pip install --upgrade pip
@@ -51,12 +52,12 @@ jobs:
5152
run: |
5253
cd examples
5354
python document.py
55+
git diff
5456
5557
cd test
5658
python test.py
5759
5860
- name: Test NeuroML examples
59-
if: ${{ matrix.python-version != '3.7'}}
6061
run: |
6162
6263
cd examples/neuroml2
@@ -65,21 +66,20 @@ jobs:
6566
# Note: NeuroML files will be validated with OMV below
6667
6768
- name: Test SBML examples
68-
if: ${{ matrix.python-version != '3.7'}}
6969
run: |
7070
7171
cd examples/sbml
7272
./regenerateAndTest.sh
7373
7474
- name: Run pytest
7575
run: |
76-
pytest tests
76+
pytest tests -v
7777
78-
- name: Install & test NeuroMLlite
78+
- name: Test NeuroMLlite
7979
run: |
8080
git clone --branch development https://github.com/NeuroML/NeuroMLlite.git
8181
cd NeuroMLlite
82-
#pip install . # Use versions of neuroml libs as set in setup.py
82+
# pip install . # Use versions of neuroml libs as set in modelspec's setup.cfg -> dev -> NeuroMLlite
8383
cd examples
8484
python Example1.py
8585
@@ -93,7 +93,6 @@ jobs:
9393
python arrays.py -run # test one example
9494
9595
- name: Build Documentation
96-
if: ${{ matrix.python-version != '3.7'}}
9796
run: |
9897
# Note: contributors generation below fails on py 3.7 due to pandas version...
9998
pip install .[docs]

docs/sphinx/source/api/Contributors.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Modelspec contributors
44

55
This page list names and Github profiles of contributors to Modelspec, listed in no particular order.
6-
This page is generated periodically, most recently on 2023-09-19.
6+
This page is generated periodically, most recently on 2024-03-06.
77

88
- Padraig Gleeson ([@pgleeson](https://github.com/pgleeson))
99
- Manifest Chakalov ([@mqnifestkelvin](https://github.com/mqnifestkelvin))
@@ -12,3 +12,4 @@ This page is generated periodically, most recently on 2023-09-19.
1212
- Parikshit Singh Rathore ([@parikshit14](https://github.com/parikshit14))
1313
- Ankur Sinha ([@sanjayankur31](https://github.com/sanjayankur31))
1414
- kmantel ([@kmantel](https://github.com/kmantel))
15+
- Robert Vickerstaff ([@robertvi](https://github.com/robertvi))
10 Bytes
Binary file not shown.

docs/sphinx/source/api/examples/document.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"MyBook": {
33
"title": "My life in Python",
4+
"ISBN": 123,
45
"sections": {
56
"Abstract": {
67
"paragraphs": [

docs/sphinx/source/api/examples/document.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ class Document(Base):
5252
sections: List[Section] = field(factory=list)
5353

5454

55-
doc = Document(id="MyBook")
55+
doc = Document(id="MyBook", ISBN=123)
5656
doc.title = "My life in Python"
5757

5858
a = Section(id="Abstract")

docs/sphinx/source/api/examples/document.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<Document id="MyBook" title="My life in Python">
2+
<Document id="MyBook" title="My life in Python" ISBN="123">
33
<Section id="Abstract">
44
<Paragraph contents="Blah blah blah"/>
55
<Paragraph contents="Blah2"/>

docs/sphinx/source/api/examples/document.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
MyBook:
22
title: My life in Python
3+
ISBN: 123
34
sections:
45
Abstract:
56
paragraphs:

examples/document.bson

10 Bytes
Binary file not shown.

examples/document.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"MyBook": {
33
"title": "My life in Python",
4+
"ISBN": 123,
45
"sections": {
56
"Abstract": {
67
"paragraphs": [

examples/document.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ class Document(Base):
5252
sections: List[Section] = field(factory=list)
5353

5454

55-
doc = Document(id="MyBook")
55+
doc = Document(id="MyBook", ISBN=123)
5656
doc.title = "My life in Python"
5757

5858
a = Section(id="Abstract")

0 commit comments

Comments
 (0)