Skip to content

Run examples with MPI #837

Run examples with MPI

Run examples with MPI #837

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