Fix meshing API usage in tests #106
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: 'Build and test icepack' | |
on: [push, pull_request] | |
jobs: | |
test: | |
strategy: | |
matrix: | |
version: [2023-11, 2024-04] | |
runs-on: ubuntu-latest | |
container: | |
image: docker.io/firedrakeproject/firedrake-vanilla:${{ matrix.version }} | |
options: --user root | |
steps: | |
- name: Install patchelf | |
run: | | |
apt update | |
apt install -yq patchelf | |
- name: Check out git repository | |
uses: actions/checkout@v3 | |
- name: Activate Firedrake virtual environment | |
run: | | |
. /home/firedrake/firedrake/bin/activate | |
echo PATH=$PATH >> $GITHUB_ENV | |
- name: Install package | |
run: | | |
pip install git+https://github.com/icepack/Trilinos.git@190384db6cb1d148cea36f2d8d69033a90b2d991 | |
pip install git+https://github.com/icepack/pyrol.git@3bc1802e436eda8949a286abf54528c7a882f706 | |
pip install jupyter ipykernel nbconvert | |
python -m ipykernel install --user --name=firedrake | |
pip install --editable . | |
- name: Run unit tests | |
run: pytest | |
- name: Run example notebooks | |
run: | | |
jupyter nbconvert --to notebook --execute notebooks/tutorials/02-synthetic-ice-shelf.ipynb | |
jupyter nbconvert --to notebook --execute notebooks/how-to/01-performance.ipynb | |
jupyter nbconvert --to notebook --execute notebooks/how-to/02-checkpointing.ipynb | |
jupyter nbconvert --to notebook --execute notebooks/how-to/03-adaptivity.ipynb | |
jupyter nbconvert --to notebook --execute notebooks/how-to/05-time-dependent-inverse.ipynb |