Skip to content

ngsPETSc tests

ngsPETSc tests #309

Workflow file for this run

# .github/workflows/app.yaml
name: ngsPETSc tests
on:
push:
branches-ignore:
- 'no-ci/*'
schedule:
- cron: '30 10 7,14,21,28 * *'
jobs:
ngsolve:
runs-on: ubuntu-latest
container: urzerbinati/ngspetsc:latest
timeout-minutes: 30
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Install ngsPETSc
run: |
python -m pip install .
- name: Check formatting
run: |
make lint
make lint_test
- name: Run test suite in serial
run: |
pytest -v tests/test_env.py
pytest -v tests/test_vec.py
pytest -v tests/test_mat.py
pytest -v tests/test_plex.py
pytest -v tests/test_ksp.py
pytest -v tests/test_pc.py
pytest -v tests/test_eps.py
pytest -v tests/test_snes.py
- name: Run test suite in parallel
run: |
mpirun --allow-run-as-root -n 2 pytest -v --with-mpi tests/test_env.py
mpirun --allow-run-as-root -n 2 pytest -v --with-mpi tests/test_vec.py
mpirun --allow-run-as-root -n 2 pytest -v --with-mpi tests/test_mat.py
mpirun --allow-run-as-root -n 2 pytest -v --with-mpi tests/test_plex.py
mpirun --allow-run-as-root -n 2 pytest -v --with-mpi tests/test_ksp.py
mpirun --allow-run-as-root -n 2 pytest -v --with-mpi tests/test_pc.py
mpirun --allow-run-as-root -n 2 pytest -v --with-mpi tests/test_eps.py
mpirun --allow-run-as-root -n 2 pytest -v --with-mpi tests/test_snes.py
fenicsx:
runs-on: ubuntu-latest
container: dolfinx/dolfinx:nightly
timeout-minutes: 50
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Install Netgen and ngsPETSc
run: |
pip install netgen-mesher
pip install pylint
export PYTHONPATH=$PYTHONPATH:/usr/local/lib/python3.10/site-packages
echo "PYTHONPATH=$PYTHONPATH" >> $GITHUB_ENV
NGSPETSC_NO_INSTALL_REQUIRED=ON pip install .
- name: Check formatting
run: |
make lint
make lint_test
- name: Run test suite in serial
run: |
pytest -v tests/test_fenicsx.py