Skip to content

Build FANS as a library to be coupled to a macro-scale simulation via… #23

Build FANS as a library to be coupled to a macro-scale simulation via…

Build FANS as a library to be coupled to a macro-scale simulation via… #23

Workflow file for this run

name: Test PyFans
on: [push, pull_request]
jobs:
pyfans-run-test:
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@v2
- name: Generate build directory
run: mkdir -p ${{ env.FANS_BUILD_DIR }}
- name: Install dependencies
run: |
apt update
apt install -y cmake make g++ python3 python3-numpy python3.12-dev
- name: Configure
working-directory: ${{ env.FANS_BUILD_DIR }}
run: |
cmake .. -DFANS_LIBRARY_FOR_MICRO_MANAGER=ON
make
- name: Run FANS as a library via a Python script
run: |
cd test/test_pyfans
python3 run_fans_as_library.py