Update ns_code2.ipynb #82
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 stable release | |
on: | |
workflow_dispatch: | |
workflow_call: | |
pull_request: | |
branches: ["release"] | |
env: | |
HDF5_MPI: "ON" | |
HDF5_DIR: "/usr/local/" | |
DISPLAY: ":99.0" | |
DEB_PYTHON_INSTALL_LAYOUT: deb_system | |
LIBGL_ALWAYS_SOFTWARE: 1 | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
container: ghcr.io/fenics/dolfinx/lab:stable | |
env: | |
PYVISTA_OFF_SCREEN: true | |
# Steps represent a sequence of tasks that will be executed as part of the job | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: release | |
- uses: ./.github/actions/install-dependencies | |
- name: Install additional deps | |
run: | | |
python3 -m pip install --no-binary=h5py . | |
- name: Test complex notebooks in parallel | |
working-directory: chapter1 | |
run: | | |
export PKG_CONFIG_PATH=/usr/local/dolfinx-complex/lib/pkgconfig:$PKG_CONFIG_PATH | |
export PETSC_ARCH=linux-gnu-complex128-32 | |
export PYTHONPATH=/usr/local/dolfinx-complex/lib/python3.12/dist-packages:$PYTHONPATH | |
export LD_LIBRARY_PATH=/usr/local/dolfinx-complex/lib:$LD_LIBRARY_PATH | |
python3 complex_mode.py | |
mpirun -n 2 python3 complex_mode.py | |
- name: Test chapter 1 | |
working-directory: chapter1 | |
run: | | |
python3 -c "from pyvista import start_xvfb; start_xvfb(0.1)" | |
mpirun -n 2 python3 fundamentals_code.py | |
mpirun -n 2 python3 nitsche.py | |
mpirun -n 2 python3 membrane_code.py | |
- name: Test chapter 2 | |
working-directory: chapter2 | |
run: | | |
mpirun -n 2 python3 diffusion_code.py | |
mpirun -n 2 python3 heat_code.py | |
mpirun -n 2 python3 linearelasticity_code.py | |
mpirun -n 2 python3 hyperelasticity.py | |
mpirun -n 2 python3 nonlinpoisson_code.py | |
mpirun -n 2 python3 ns_code1.py | |
mpirun -n 2 python3 ns_code2.py | |
- name: Test chapter 3 | |
working-directory: chapter3 | |
run: | | |
mpirun -n 2 python3 neumann_dirichlet_code.py | |
mpirun -n 2 python3 multiple_dirichlet.py | |
mpirun -n 2 python3 subdomains.py | |
mpirun -n 2 python3 robin_neumann_dirichlet.py | |
mpirun -n 2 python3 component_bc.py | |
mpirun -n 2 python3 em.py | |
- name: Test chapter 4 | |
working-directory: chapter4 | |
run: | | |
mpirun -n 2 python3 solvers.py | |
mpirun -n 2 python3 convergence.py | |
mpirun -n 2 python3 compiler_parameters.py | |
mpirun -n 2 python3 newton-solver.py | |
- name: Upload Navier-Stokes DFG 2D 3 plots | |
uses: actions/upload-artifact@v4 | |
with: | |
name: DFG2D-3 | |
path: chapter2/figures | |
retention-days: 2 | |
if-no-files-found: error |