ENH: Fix mac tests #2
This file contains hidden or 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: Regression Tests (Ubuntu) | |
| on: | |
| push: | |
| branches: [ main, CMake_build ] | |
| pull_request: | |
| branches: [ main ] | |
| workflow_dispatch: | |
| jobs: | |
| Regression-Tests: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - name: Serial | |
| cmake_args: -DFIERRO_ENABLE_OPENMP=OFF | |
| omp_threads: 1 | |
| - name: OpenMP | |
| cmake_args: -DFIERRO_ENABLE_OPENMP=ON | |
| omp_threads: 2 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| fetch-depth: 1 # Only gets the latest commit, much faster | |
| - name: Install dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo DEBIAN_FRONTEND=noninteractive apt-get install -y build-essential cmake libopenmpi-dev openmpi-bin libblas-dev liblapack-dev python3 | |
| - name: Configure CMake | |
| run: | | |
| mkdir -p apps/multiphysics/build | |
| cd apps/multiphysics/build | |
| cmake -DCMAKE_BUILD_TYPE=Release ${{ matrix.cmake_args }} .. | |
| - name: Build Fierro | |
| run: | | |
| cd apps/multiphysics/build | |
| make -j$(nproc) | |
| - name: Run Regression Tests | |
| env: | |
| OMP_NUM_THREADS: ${{ matrix.omp_threads }} | |
| run: | | |
| cd apps/multiphysics/regression_tests | |
| python3 test_refactor.py |