Skip to content

The LS1 PR: Introduce system for checking compiler flags: avx2 & fma #31

The LS1 PR: Introduce system for checking compiler flags: avx2 & fma

The LS1 PR: Introduce system for checking compiler flags: avx2 & fma #31

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