Skip to content

Patched Micro Simulation Interface #1459

Patched Micro Simulation Interface

Patched Micro Simulation Interface #1459

name: Run Python and C++ dummy
on:
push:
branches:
- main
- develop
pull_request:
branches:
- "*"
jobs:
run_dummy:
name: Run dummy
runs-on: ubuntu-latest
container: precice/precice:nightly
steps:
- name: Checkout Repository
uses: actions/checkout@v6
with:
path: micro-manager
- name: Install Dependencies
working-directory: micro-manager
run: |
apt-get -qq update
apt-get -qq install python3-dev python3-venv git pkg-config
- name: Create a virtual environment and install Micro Manager in it
timeout-minutes: 6
working-directory: micro-manager
run: |
python3 -m venv .venv
. .venv/bin/activate
pip install .
- name: Run python dummy
timeout-minutes: 3
working-directory: micro-manager
run: |
. .venv/bin/activate
cd examples/
micro-manager-precice micro-manager-python-config.json &
python3 macro_dummy.py no_adaptivity
./clean-example.sh
- name: Run python dummy with adaptivity
timeout-minutes: 3
working-directory: micro-manager
run: |
. .venv/bin/activate
cd examples/
micro-manager-precice micro-manager-python-adaptivity-config.json &
python3 macro_dummy.py adaptivity
./clean-example.sh
- name: Run C++ dummy
timeout-minutes: 3
working-directory: micro-manager
run: |
. .venv/bin/activate
cd examples/cpp-dummy/
pip install pybind11
c++ -O3 -Wall -shared -std=c++11 -fPIC $(python3 -m pybind11 --includes) micro_cpp_dummy.cpp -o micro_dummy$(python3-config --extension-suffix)
cd ../
micro-manager-precice micro-manager-cpp-config.json &
python3 macro_dummy.py no_adaptivity
./clean-example.sh
- name: Run adaptive C++ dummy
timeout-minutes: 3
working-directory: micro-manager
run: |
. .venv/bin/activate
cd examples/
micro-manager-precice micro-manager-cpp-adaptivity-config.json &
python3 macro_dummy.py adaptivity
./clean-example.sh