Add documentation and test CI for pyFANS #1
Workflow file for this run
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: | |
run-tests: | |
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: Configure | |
working-directory: ${{ env.FANS_BUILD_DIR }} | |
run: | | |
cmake .. -DFANS_LIB=ON | |
make | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.x' | |
- name: Run micro_mesh.py | |
run: | | |
pipx install numpy | |
cd test/test_pyfans | |
python run_fans_as_library.py |