More test options #71
This file contains hidden or 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
| name: Build from GitHub - OSB | |
| on: | |
| push: | |
| branches: [ master, dev* , test* ] | |
| pull_request: | |
| branches: [ master, dev* , test* ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-22.04 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: [ "3.9", "3.10", "3.11", "3.12"] # not yet working: "3.12"?? | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install OMV | |
| run: | | |
| pip install git+https://github.com/OpenSourceBrain/osb-model-validation | |
| - name: Install Moose from GitHub | |
| run: | | |
| git clone https://github.com/BhallaLab/moose-core.git | |
| cd moose-core | |
| git checkout master | |
| pip install jupyter | |
| pip install jupyter_packaging | |
| pip install scipy | |
| pip install pyneuroml | |
| pip install pybind11[global] | |
| pip install python-libsbml | |
| pip install pint | |
| sudo apt-get install libhdf5-dev | |
| pip install . | |
| pip list | |
| echo "MOOSE version:" | |
| python -c "import moose; print(moose.__version__)" | |
| - name: Install numpy < 2 if necessary... | |
| if: ${{ matrix.python-version == '3.11' }} | |
| run: | | |
| pip install "numpy<2" | |
| pip list | |
| - name: Test Moose files | |
| run: | | |
| python tests/python/test_function.py | |
| #./test.sh | |
| - name: Test simple Moose file | |
| run: | | |
| cd NeuroML2 | |
| python -c "import moose; print(moose.__version__)" | |
| echo "Running simple file" | |
| python simple.py | |
| echo "Running NeuroML 2 file" | |
| python run_hhcell.py -nogui | |
| - name: Test OMV on Moose | |
| run: | | |
| cd NeuroML2/test_files | |
| omv all --engine=jNeuroML_Moose | |
| - name: Final version info | |
| run: | | |
| omv list -V |