Fix signs. #87
Workflow file for this run
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
# Simple workflow for deploying static content to GitHub Pages | |
name: Build and test | |
on: | |
workflow_call: | |
push: | |
branches: | |
- "**" | |
- "!main" | |
pull_request: | |
branches: | |
- "main" | |
jobs: | |
build-and-test: | |
runs-on: ubuntu-latest | |
container: ghcr.io/fenics/dolfinx/lab:nightly | |
env: | |
PYVISTA_OFF_SCREEN: true | |
PYVISTA_JUPYTER_BACKEND: "static" | |
DISPLAY: ":99.0" | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install | |
run: | | |
python3 -m pip install '.[ci]' | |
- name: ruff check and check format | |
run: | | |
ruff check . | |
ruff format --check . | |
- name: Run tests (serial) | |
run: | | |
python3 -m pytest test/ | |
- name: Run tests (MPI, np=3) | |
run: | | |
mpirun -n 3 python3 -m pytest test/ | |
- name: Run demos (serial) | |
run: | | |
python3 -c "from pyvista import start_xvfb; start_xvfb(0.1)" | |
python3 -m pytest -m mpi -v --num-proc=1 doc/demo | |
- name: Run demos (MPI, np=3) | |
run: | | |
python3 -m pytest -m mpi -v --num-proc=3 doc/demo | |
- name: Build book | |
working-directory: doc/ | |
run: jupyter-book build . | |
- name: Upload documentation as artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: webpage | |
path: doc/_build/html | |
if-no-files-found: error |