TEST: Testing regression tests #1
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 | |
| on: | |
| push: | |
| branches: [ main, CMake_build ] | |
| pull_request: | |
| branches: [ main ] | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - name: Install dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo 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 -DFIERRO_ENABLE_OPENMP=ON .. | |
| - name: Build Fierro | |
| run: | | |
| cd apps/multiphysics/build | |
| make -j$(nproc) | |
| - name: Upload Build Artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: fierro-executable | |
| path: apps/multiphysics/build/app/Fierro | |
| test: | |
| needs: build | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| test_name: [ | |
| "TaylorAnvil", "TaylorAnvil_rz", "Compaction", "Compaction_rz", | |
| "Sedov", "Sod_X", "Sod_Y", "Sod_Z", "Sedov_Erosion", | |
| "Sedov_Read_Ensight", "Sedov_rz_polar", "Abaqus_read", | |
| "Pressure_bc_box", "vtu_read", "lin_vol_frac_two_mat", | |
| "Bending-3D-plate", "Vel_bc_box", "slanted_block_bounce", | |
| "slanted_impact", "SGTM_cooling_cube", "sie_expansion_test", | |
| "confined_preload", "unconfined_preload", "edge_flat_test", | |
| "billiards", "3by3_stack", "cylinder_contact" | |
| ] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - name: Install dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y libopenmpi-dev openmpi-bin python3 | |
| - name: Download Build Artifact | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: fierro-executable | |
| path: apps/multiphysics/build/app | |
| - name: Set executable permissions | |
| run: chmod +x apps/multiphysics/build/app/Fierro | |
| - name: Run Regression Test | |
| run: | | |
| cd apps/multiphysics/regression_tests | |
| python3 test_refactor.py ${{ matrix.test_name }} |