@@ -27,43 +27,54 @@ concurrency:
27
27
env :
28
28
# Directory that will be published on github pages
29
29
PUBLISH_DIR : ./_build/html
30
-
30
+ HDF5_MPI : " ON"
31
+ HDF5_DIR : " /usr/local/"
32
+ DISPLAY : " :99.0"
33
+ DEB_PYTHON_INSTALL_LAYOUT : deb_system
31
34
32
35
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
33
36
jobs :
34
37
# This workflow contains a single job called "build"
35
38
test :
36
39
# The type of runner that the job will run on
37
40
runs-on : ubuntu-latest
38
- container : ghcr.io/jorgensd/dolfinx-tutorial:v0.5.1
39
-
41
+ container : ghcr.io/fenics/dolfinx/lab:v0.6.0-r1
40
42
env :
41
- HDF5_MPI : " ON"
42
- CC : mpicc
43
- HDF5_DIR : " /usr/local/"
44
- DISPLAY : " :99.0"
45
43
PYVISTA_OFF_SCREEN : true
46
44
47
45
# Steps represent a sequence of tasks that will be executed as part of the job
48
46
steps :
49
47
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
50
48
- uses : actions/checkout@v3
51
49
50
+ # Upgrade setuptools and pip
51
+ # https://github.com/pypa/setuptools/issues/3269#issuecomment-1254507377
52
+ - name : Install apt dependencies and upgrade pip
53
+ run : |
54
+ apt-get update && apt-get install -y libgl1-mesa-glx libxrender1 xvfb
55
+ python3 -m pip install -U "setuptools<=65.5.1" pip pkgconfig
56
+
57
+ # Install `h5py`
58
+ # https://github.com/hl5py/h5py/issues/2222
59
+ - name : Install h5py and pip requirements
60
+ run : |
61
+ python3 -m pip install cython
62
+ python3 -m pip install --no-build-isolation --no-binary=h5py h5py
63
+ python3 -m pip install --no-cache-dir -r docker/requirements.txt --upgrade
64
+
65
+
52
66
- name : Test complex notebooks in parallel
53
67
run : |
54
68
export PKG_CONFIG_PATH=/usr/local/dolfinx-complex/lib/pkgconfig:$PKG_CONFIG_PATH
55
69
export PETSC_ARCH=linux-gnu-complex-32
56
70
export PYTHONPATH=/usr/local/dolfinx-complex/lib/python3.10/dist-packages:$PYTHONPATH
57
71
export LD_LIBRARY_PATH=/usr/local/dolfinx-complex/lib:$LD_LIBRARY_PATH
58
- pip3 uninstall pyvista -y
59
- pip3 install pyvista --upgrade
60
72
python3 -c "from pyvista import start_xvfb; start_xvfb(0.1)"
61
73
cd chapter1
74
+ python3 complex_mode.py
62
75
mpirun -n 2 python3 complex_mode.py
63
76
64
-
65
- - name : Install dependencies
66
- run : pip3 install notebook nbconvert jupyter-book --upgrade
77
+
67
78
- name : Test notebooks in parallel
68
79
run : |
69
80
python3 -c "from pyvista import start_xvfb; start_xvfb(0.1)"
@@ -102,24 +113,39 @@ jobs:
102
113
build-book :
103
114
# The type of runner that the job will run on
104
115
runs-on : ubuntu-latest
105
- container : ghcr.io/jorgensd /dolfinx-tutorial :v0.5.1
106
-
116
+ container : ghcr.io/fenics /dolfinx/lab :v0.6.0-r1
117
+
107
118
env :
108
- HDF5_MPI : " ON"
109
- CC : mpicc
110
- HDF5_DIR : " /usr/local/"
111
- DISPLAY : " :99.0"
119
+ PYVISTA_TRAME_SERVER_PROXY_PREFIX : ' /proxy/'
120
+ PYVISTA_TRAME_SERVER_PROXY_ENABLED : " True"
112
121
PYVISTA_OFF_SCREEN : false
113
- PYVISTA_JUPYTER_BACKEND : " static"
122
+ PYVISTA_JUPYTER_BACKEND : " panel"
123
+
114
124
115
125
# Steps represent a sequence of tasks that will be executed as part of the job
116
126
steps :
117
- # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
127
+
118
128
- uses : actions/checkout@v3
119
- # Runs a single command using the runners shell
129
+
130
+ # Upgrade setuptools and pip
131
+ # https://github.com/pypa/setuptools/issues/3269#issuecomment-1254507377
132
+ - name : Install apt dependencies and upgrade pip
133
+ run : |
134
+ apt-get update && apt-get install -y libgl1-mesa-glx libxrender1 xvfb
135
+ python3 -m pip install -U "setuptools<=65.5.1" pip pkgconfig
136
+
137
+ # Install `h5py`
138
+ # https://github.com/hl5py/h5py/issues/2222
139
+ - name : Install h5py and pip requirements
140
+ run : |
141
+ python3 -m pip install cython
142
+ python3 -m pip install --no-build-isolation --no-binary=h5py h5py
143
+ python3 -m pip install --no-cache-dir -r docker/requirements.txt jupyter-book --upgrade
144
+
145
+
120
146
- name : Build the book
121
147
run :
122
- jupyter-book build -W .
148
+ jupyter-book build .
123
149
124
150
- name : Upload book
125
151
uses : actions/upload-pages-artifact@v1
@@ -147,4 +173,4 @@ jobs:
147
173
148
174
- name : Deploy to GitHub Pages
149
175
id : deployment
150
- uses : actions/deploy-pages@v1
176
+ uses : actions/deploy-pages@v1
0 commit comments