The LS1 PR: Introduce system for checking compiler flags: avx2 & fma … #33
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |