Ensure tests run if no owmeta installed... #206
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
name: OMV tests | |
on: | |
push: | |
branches: [ master, development, experimental, ow* ] | |
pull_request: | |
branches: [ master, development, experimental, ow* ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: [ 3.7, 3.9 ] | |
engine: [ jNeuroML, jNeuroML_NEURON, jNeuroML_validate ] #, NON_OMV_TESTS ] | |
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 | |
pip install scipy sympy matplotlib cython pandas tables | |
- name: Run OMV tests on engine ${{ matrix.engine }} | |
run: | | |
omv all -V --engine=${{ matrix.engine }}; export OMV_SUCCESS=$?; echo $OMV_SUCCESS | |
echo "Finished all OMV tests" | |
omv list -V | |
if [[ ${OMV_ENGINE} == "NON_OMV_TESTS" ]]; then echo "Continuing with tests not under OMV..."; else exit $OMV_SUCCESS; fi | |
echo "Installing..." | |
pip install . | |
pip list |