Test Demos #803
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: Test Demos | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '02 23 * * *' | |
jobs: | |
serial_demos: | |
name: Serial demos | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
shell: bash -l {0} | |
strategy: | |
fail-fast: false | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4.2.2 | |
- name: Create conda environment | |
run: conda create -n cashocs -c conda-forge fenics=2019 meshio">=5.3" pytest gmsh">=4.8" matplotlib scipy scotch"<7" python=3.12 | |
- name: Show conda info | |
run: conda info | |
- name: Show list of all installed packages | |
run: conda list | |
- name: Install package | |
run: | | |
conda run --live-stream -n cashocs pip install .[all] | |
- name: Run demos | |
env: | |
OMP_NUM_THREADS: 2 | |
run: | | |
conda run --live-stream -n cashocs python3 -m pytest -vv demos/test.py | |
parallel_demos: | |
name: Parallel demos | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
shell: bash -l {0} | |
strategy: | |
fail-fast: false | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4.2.2 | |
- name: Create conda environment | |
run: conda create -n cashocs -c conda-forge fenics=2019 meshio">=5.3" pytest gmsh">=4.8" mpich matplotlib scipy scotch"<7" python=3.12 | |
- name: Show conda info | |
run: conda info | |
- name: Show list of all installed packages | |
run: conda list | |
- name: Install package | |
run: | | |
conda run --live-stream -n cashocs pip install .[all] | |
- name: Run demos in parallel | |
env: | |
OMP_NUM_THREADS: 1 | |
run: | | |
conda run --live-stream -n cashocs python3 -m pytest -vv demos/test_mpi.py |