Skip to content

Commit

Permalink
Add libgl flag to ci (#238)
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgensd committed Jan 13, 2025
1 parent 3fd4b03 commit 260fa82
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/book_stable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ env:
HDF5_DIR: "/usr/local/"
DISPLAY: ":99.0"
DEB_PYTHON_INSTALL_LAYOUT: deb_system
LIBGL_ALWAYS_SOFTWARE: 1

jobs:
build-book:
Expand All @@ -37,7 +38,7 @@ jobs:
run: jupyter-book build . -W

- uses: actions/upload-artifact@v4
if : always()
if: always()
with:
name: webpage
path: ./_build/html
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/test_nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ jobs:
PYVISTA_OFF_SCREEN: true
DISPLAY: ":99.0"
PYVISTA_JUPYTER_BACKEND: html
LIBGL_ALWAYS_SOFTWARE: 1

steps:
- uses: actions/checkout@v4
Expand Down
17 changes: 9 additions & 8 deletions .github/workflows/test_stable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ env:
HDF5_DIR: "/usr/local/"
DISPLAY: ":99.0"
DEB_PYTHON_INSTALL_LAYOUT: deb_system
LIBGL_ALWAYS_SOFTWARE: 1

jobs:
test:
Expand Down Expand Up @@ -39,26 +40,26 @@ jobs:
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
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: |
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: |
Expand All @@ -68,7 +69,7 @@ jobs:
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: |
Expand Down

0 comments on commit 260fa82

Please sign in to comment.