-
Notifications
You must be signed in to change notification settings - Fork 8
64 lines (54 loc) · 1.5 KB
/
Copy pathtest_pyfans.yaml
File metadata and controls
64 lines (54 loc) · 1.5 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
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@v7
- 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: Build and install FANS
run: |
cmake -S . -B ${{ env.FANS_BUILD_DIR }}
cmake --build ${{ env.FANS_BUILD_DIR }} -j
cmake --install ${{ env.FANS_BUILD_DIR }}
ldconfig
- name: Install pyfans against it
run: |
. .venv/bin/activate
pip install ./pyfans
- name: Solve one RVE through the bindings
run: |
. .venv/bin/activate
python3 test/test_pyfans/standalone.py
- 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