Skip to content

Merge pull request #2 from OpenSourceBrain/master #7

Merge pull request #2 from OpenSourceBrain/master

Merge pull request #2 from OpenSourceBrain/master #7

Workflow file for this run

name: C/C++ CI
on:
push:
branches: [ master, development, test* ]
pull_request:
branches: [ master, development, test* ]
jobs:
build:
runs-on: ${{ matrix.runs-on }}
strategy:
fail-fast: false
matrix:
runs-on: [ubuntu-latest, ubuntu-22.04, macos-latest, macos-14 ]
python-version: [ "3.10", "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: Build Sundials
run: |
cd WormSim
# Set idaInstallDir:
idaInstallDir=`pwd`/Sundials
# Go to sundials-2.3.0 directory, configure & make:
cd sundials-2.3.0
./configure CC=g++ --prefix=$idaInstallDir --disable-mpi --disable-fcmix
make
make install
- name: Install Python dependencies
run: |
pip install numpy matplotlib jsonschema
- name: Build and run model
run: |
cd WormSim/Model
./test_all.sh
ls -alth
- name: Print some output of the executed model
run: |
cd WormSim/Model
ls -alt
head -n 3 simdata.csv