-
Notifications
You must be signed in to change notification settings - Fork 7
56 lines (47 loc) · 1.28 KB
/
test_pyfans.yaml
File metadata and controls
56 lines (47 loc) · 1.28 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
name: Test PyFans
on:
push:
branches:
- main
- develop
pull_request:
branches:
- "*"
jobs:
test-pyfans:
runs-on: ubuntu-latest
container: unistuttgartdae/fans-ci:noble
defaults:
run:
shell: "bash --login -eo pipefail {0}"
env:
FANS_BUILD_DIR: build
FANS_MPI_USER: fans
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Generate build directory
run: mkdir -p ${{ env.FANS_BUILD_DIR }}
- name: Install dependencies
run: |
apt update
apt install -y wget python3-venv
- name: Install preCICE
run: |
wget https://github.com/precice/precice/releases/download/v3.2.0/libprecice3_3.2.0_noble.deb
apt install -y ./libprecice3_3.2.0_noble.deb
- name: Install the Micro Manager
run: |
python3 -m venv .venv
. .venv/bin/activate
pip install micro-manager-precice
- name: Configure
working-directory: ${{ env.FANS_BUILD_DIR }}
run: |
cmake .. -DFANS_LIBRARY_FOR_MICRO_MANAGER=ON
make
- name: Run a dummy macro-micro coupling test
run: |
. .venv/bin/activate
cd test/test_pyfans
python3 macro-cube.py & micro-manager-precice micro-manager-config.json