@@ -27,43 +27,54 @@ concurrency:
2727env :
2828 # Directory that will be published on github pages
2929 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
3134
3235# A workflow run is made up of one or more jobs that can run sequentially or in parallel
3336jobs :
3437 # This workflow contains a single job called "build"
3538 test :
3639 # The type of runner that the job will run on
3740 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
4042 env :
41- HDF5_MPI : " ON"
42- CC : mpicc
43- HDF5_DIR : " /usr/local/"
44- DISPLAY : " :99.0"
4543 PYVISTA_OFF_SCREEN : true
4644
4745 # Steps represent a sequence of tasks that will be executed as part of the job
4846 steps :
4947 # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
5048 - uses : actions/checkout@v3
5149
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+
5266 - name : Test complex notebooks in parallel
5367 run : |
5468 export PKG_CONFIG_PATH=/usr/local/dolfinx-complex/lib/pkgconfig:$PKG_CONFIG_PATH
5569 export PETSC_ARCH=linux-gnu-complex-32
5670 export PYTHONPATH=/usr/local/dolfinx-complex/lib/python3.10/dist-packages:$PYTHONPATH
5771 export LD_LIBRARY_PATH=/usr/local/dolfinx-complex/lib:$LD_LIBRARY_PATH
58- pip3 uninstall pyvista -y
59- pip3 install pyvista --upgrade
6072 python3 -c "from pyvista import start_xvfb; start_xvfb(0.1)"
6173 cd chapter1
74+ python3 complex_mode.py
6275 mpirun -n 2 python3 complex_mode.py
6376
64-
65- - name : Install dependencies
66- run : pip3 install notebook nbconvert jupyter-book --upgrade
77+
6778 - name : Test notebooks in parallel
6879 run : |
6980 python3 -c "from pyvista import start_xvfb; start_xvfb(0.1)"
@@ -102,24 +113,39 @@ jobs:
102113 build-book :
103114 # The type of runner that the job will run on
104115 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+
107118 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"
112121 PYVISTA_OFF_SCREEN : false
113- PYVISTA_JUPYTER_BACKEND : " static"
122+ PYVISTA_JUPYTER_BACKEND : " panel"
123+
114124
115125 # Steps represent a sequence of tasks that will be executed as part of the job
116126 steps :
117- # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
127+
118128 - 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+
120146 - name : Build the book
121147 run :
122- jupyter-book build -W .
148+ jupyter-book build .
123149
124150 - name : Upload book
125151 uses : actions/upload-pages-artifact@v1
@@ -147,4 +173,4 @@ jobs:
147173
148174 - name : Deploy to GitHub Pages
149175 id : deployment
150- uses : actions/deploy-pages@v1
176+ uses : actions/deploy-pages@v1
0 commit comments