Run examples with MPI #837
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: Run examples with MPI | |
on: | |
push: | |
# The CI is executed on every push on every branch | |
branches: | |
- development | |
pull_request: | |
# The CI is executed on every pull request to the main branch | |
branches: | |
- development | |
schedule: | |
# The CI is executed every day at 8am | |
- cron: "0 8 * * *" | |
jobs: | |
run-examples: | |
runs-on: ubuntu-22.04 | |
# Runs against FEniCS main branch with meshview fixes | |
container: ghcr.io/scientificcomputing/fenics-gmsh:2024-02-19 | |
env: | |
PYVISTA_OFF_SCREEN: true | |
DISPLAY: ":99.0" | |
PYVISTA_JUPYTER_BACKEND: panel | |
steps: | |
# This action sets the current path to the root of your github repo | |
- uses: actions/checkout@v4 | |
- name: "Install pyvista dependencies" | |
run: apt-get update && apt-get install -y libgl1-mesa-glx libxrender1 xvfb nodejs | |
- name: "Install code" | |
run: python3 -m pip install ".[dev,examples]" | |
- name: Run MPI example | |
run: mpirun -n 2 python3 examples/example3/example3_multimeshMPI.py |