Skip to content

Commit 260fa82

Browse files
committed
Add libgl flag to ci (jorgensd#238)
1 parent 3fd4b03 commit 260fa82

File tree

3 files changed

+12
-9
lines changed

3 files changed

+12
-9
lines changed

.github/workflows/book_stable.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ env:
1212
HDF5_DIR: "/usr/local/"
1313
DISPLAY: ":99.0"
1414
DEB_PYTHON_INSTALL_LAYOUT: deb_system
15+
LIBGL_ALWAYS_SOFTWARE: 1
1516

1617
jobs:
1718
build-book:
@@ -37,7 +38,7 @@ jobs:
3738
run: jupyter-book build . -W
3839

3940
- uses: actions/upload-artifact@v4
40-
if : always()
41+
if: always()
4142
with:
4243
name: webpage
4344
path: ./_build/html

.github/workflows/test_nightly.yml

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ jobs:
2424
PYVISTA_OFF_SCREEN: true
2525
DISPLAY: ":99.0"
2626
PYVISTA_JUPYTER_BACKEND: html
27+
LIBGL_ALWAYS_SOFTWARE: 1
2728

2829
steps:
2930
- uses: actions/checkout@v4

.github/workflows/test_stable.yml

+9-8
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ env:
1010
HDF5_DIR: "/usr/local/"
1111
DISPLAY: ":99.0"
1212
DEB_PYTHON_INSTALL_LAYOUT: deb_system
13+
LIBGL_ALWAYS_SOFTWARE: 1
1314

1415
jobs:
1516
test:
@@ -39,26 +40,26 @@ jobs:
3940
export LD_LIBRARY_PATH=/usr/local/dolfinx-complex/lib:$LD_LIBRARY_PATH
4041
python3 complex_mode.py
4142
mpirun -n 2 python3 complex_mode.py
42-
43+
4344
- name: Test chapter 1
4445
working-directory: chapter1
4546
run: |
46-
python3 -c "from pyvista import start_xvfb; start_xvfb(0.1)"
47-
mpirun -n 2 python3 fundamentals_code.py
48-
mpirun -n 2 python3 nitsche.py
49-
mpirun -n 2 python3 membrane_code.py
47+
python3 -c "from pyvista import start_xvfb; start_xvfb(0.1)"
48+
mpirun -n 2 python3 fundamentals_code.py
49+
mpirun -n 2 python3 nitsche.py
50+
mpirun -n 2 python3 membrane_code.py
5051
5152
- name: Test chapter 2
5253
working-directory: chapter2
53-
run: |
54+
run: |
5455
mpirun -n 2 python3 diffusion_code.py
5556
mpirun -n 2 python3 heat_code.py
5657
mpirun -n 2 python3 linearelasticity_code.py
5758
mpirun -n 2 python3 hyperelasticity.py
5859
mpirun -n 2 python3 nonlinpoisson_code.py
5960
mpirun -n 2 python3 ns_code1.py
6061
mpirun -n 2 python3 ns_code2.py
61-
62+
6263
- name: Test chapter 3
6364
working-directory: chapter3
6465
run: |
@@ -68,7 +69,7 @@ jobs:
6869
mpirun -n 2 python3 robin_neumann_dirichlet.py
6970
mpirun -n 2 python3 component_bc.py
7071
mpirun -n 2 python3 em.py
71-
72+
7273
- name: Test chapter 4
7374
working-directory: chapter4
7475
run: |

0 commit comments

Comments
 (0)