File tree Expand file tree Collapse file tree 2 files changed +16
-6
lines changed Expand file tree Collapse file tree 2 files changed +16
-6
lines changed Original file line number Diff line number Diff line change @@ -47,21 +47,28 @@ jobs:
47
47
run : |
48
48
pip list
49
49
50
- - name : Run some examples
50
+ - name : Run simple examples
51
51
run : |
52
52
cd examples
53
53
python document.py
54
54
55
55
cd test
56
56
python test.py
57
57
58
- ## Test NeuroML example
58
+ - name : Test NeuroML examples
59
+ if : ${{ matrix.python-version != '3.7'}}
59
60
60
- cd .. /neuroml2
61
+ cd examples /neuroml2
61
62
python neuroml2_spec.py
62
63
63
64
# Note: NeuroML files will be validated with OMV below
64
65
66
+ - name : Test SBML examples
67
+ if : ${{ matrix.python-version != '3.7'}}
68
+
69
+ cd examples/sbml
70
+ ./regenerateAndTest.sh
71
+
65
72
- name : Run pytest
66
73
run : |
67
74
pytest tests
Original file line number Diff line number Diff line change 3
3
from modelspec .base_types import Base
4
4
from modelspec .utils import load_json
5
5
from typing import List
6
+ from typing import Any
7
+ import sys
6
8
7
- # Example testing multiple options...
8
9
9
- from typing import Any
10
+ # Example testing multiple options...
10
11
11
12
12
13
def convert2float (x : Any ) -> float :
@@ -83,7 +84,9 @@ class TopClass(Base):
83
84
84
85
tc .to_yaml_file ("test_instance.yaml" )
85
86
tc .to_json_file ("test_instance.json" )
86
- tc .to_xml_file ("test_instance.xml" )
87
+
88
+ if sys .version_info >= (3 , 8 ):
89
+ tc .to_xml_file ("test_instance.xml" )
87
90
88
91
str_b4 = str (tc )
89
92
You can’t perform that action at this time.
0 commit comments