-
-
Notifications
You must be signed in to change notification settings - Fork 18
72 lines (64 loc) · 2.15 KB
/
Copy pathtest-macro-micro-dummy.yml
File metadata and controls
72 lines (64 loc) · 2.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
name: Run Python and C++ dummy
on:
workflow_call:
jobs:
run_dummy:
name: Dummy
runs-on: ubuntu-latest
container: precice/precice:nightly
steps:
- name: Checkout Repository
uses: actions/checkout@v7
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