Make the inner optimal control problem silent in topology optimization #1416
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
name: Tests (ubuntu, parallel) | |
on: | |
workflow_dispatch: | |
pull_request: | |
schedule: | |
- cron: '03 22 * * *' | |
jobs: | |
parallel_tests: | |
name: Test (py=${{ matrix.python-version}}, ${{ matrix.mpi }}) | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
shell: bash -l {0} | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] | |
mpi: [mpich, openmpi] | |
exclude: | |
- python-version: "3.8" | |
mpi: openmpi | |
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" scipy scotch"<7" ${{ matrix.mpi }} python=${{ matrix.python-version }} | |
- 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 tests in parallel | |
env: | |
OMP_NUM_THREADS: 1 | |
run: | | |
conda run --live-stream -n cashocs mpirun -n 2 python3 -m pytest -vv --timeout=1800 -p no:cacheprovider --randomly-seed=${{ github.run_id }} tests/ |