1212 name : Format
1313 runs-on : ubuntu-latest
1414 steps :
15- - uses : actions/checkout@v3
16- - uses : actions/setup-python@v3
17- - uses : pre-commit/action@v3.0.0
15+ - uses : actions/checkout@v4
16+ - uses : actions/setup-python@v5
17+ with :
18+ python-version : " 3.10"
19+ - uses : pre-commit/action@v3.0.1
1820 with :
1921 extra_args : --hook-stage manual --all-files
2022
@@ -24,16 +26,25 @@ jobs:
2426 strategy :
2527 fail-fast : false
2628 matrix :
27- python-version : [ "3.8", "3.9", "3.10", "3.11"]
29+ python-version : [ "3.8", "3.9", "3.10", "3.11", "3.12" ]
2830 runs-on : [ubuntu-latest, macos-latest, windows-latest]
31+ exclude :
32+ - runs-on : macos-latest
33+ python-version : " 3.8"
34+ - runs-on : macos-latest
35+ python-version : " 3.9"
2936
3037 steps :
31- - uses : actions/checkout@v3
38+ - uses : actions/checkout@v4
3239 - name : Set up Python ${{ matrix.python-version }}
33- uses : actions/setup-python@v3
40+ uses : actions/setup-python@v5
3441 with :
3542 python-version : ${{ matrix.python-version }}
3643
44+ - name : Install HDF5 for pytables on macos-14
45+ if : ${{ matrix.runs-on == 'macos-latest' }}
46+ run : |
47+ brew install hdf5
3748
3849 - name : Install package
3950 run : |
@@ -52,12 +63,12 @@ jobs:
5263 run : |
5364 cd examples
5465 python document.py
66+ git diff
5567
5668 cd test
5769 python test.py
5870
5971 - name : Test NeuroML examples
60- if : ${{ matrix.python-version != '3.7'}}
6172 run : |
6273
6374 cd examples/neuroml2
6677 # Note: NeuroML files will be validated with OMV below
6778
6879 - name : Test SBML examples
69- if : ${{ matrix.python-version != '3.7'}}
7080 run : |
7181
7282 cd examples/sbml
@@ -76,11 +86,11 @@ jobs:
7686 run : |
7787 pytest tests -v
7888
79- - name : Install & test NeuroMLlite
89+ - name : Test NeuroMLlite
8090 run : |
8191 git clone --branch development https://github.com/NeuroML/NeuroMLlite.git
8292 cd NeuroMLlite
83- #pip install . # Use versions of neuroml libs as set in setup.py
93+ # pip install . # Use versions of neuroml libs as set in modelspec's setup.cfg -> dev -> NeuroMLlite
8494 cd examples
8595 python Example1.py
8696
94104 python arrays.py -run # test one example
95105
96106 - name : Build Documentation
97- if : ${{ matrix.python-version != '3.7'}}
98107 run : |
99108 # Note: contributors generation below fails on py 3.7 due to pandas version...
100109 pip install .[docs]
0 commit comments