feat: add 3D reacting mixing-layer example (H2/N2-air, Mach 1.5) + hcid=371 #7820
Workflow file for this run
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: Coverage Check | |
| on: | |
| push: | |
| branches: [master] | |
| pull_request: | |
| types: [opened, synchronize, reopened, ready_for_review] | |
| workflow_dispatch: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| # Least-privilege default: no job in this workflow writes to the repo. | |
| permissions: | |
| contents: read | |
| jobs: | |
| file-changes: | |
| name: Detect File Changes | |
| # Job-level permissions replace the workflow default outright rather than | |
| # merging with it, so contents must be restated here. paths-filter reads the | |
| # PR's changed-file list via pulls.listFiles; this is the only job that needs | |
| # it, so it is granted here instead of workflow-wide. | |
| permissions: | |
| contents: read | |
| pull-requests: read | |
| runs-on: 'ubuntu-latest' | |
| outputs: | |
| checkall: ${{ steps.changes.outputs.checkall }} | |
| steps: | |
| - name: Clone | |
| uses: actions/checkout@v5 | |
| - name: Detect Changes | |
| uses: dorny/paths-filter@v4 | |
| id: changes | |
| with: | |
| filters: ".github/file-filter.yml" | |
| run: | |
| name: Coverage Test on CodeCov | |
| if: needs.file-changes.outputs.checkall == 'true' && github.event.pull_request.draft != true | |
| needs: file-changes | |
| runs-on: "ubuntu-latest" | |
| steps: | |
| - name: Checkouts | |
| uses: actions/checkout@v5 | |
| - name: Get system info for cache key | |
| id: sys-info | |
| run: | | |
| { | |
| uname -m | |
| cat /proc/cpuinfo 2>/dev/null | grep 'model name' | head -1 || sysctl -n machdep.cpu.brand_string 2>/dev/null || true | |
| ${FC:-gfortran} --version 2>/dev/null | head -1 || true | |
| ${CC:-gcc} --version 2>/dev/null | head -1 || true | |
| } | (sha256sum 2>/dev/null || shasum -a 256) | cut -c1-16 > /tmp/sys-hash | |
| echo "sys-hash=$(cat /tmp/sys-hash)" >> "$GITHUB_OUTPUT" | |
| - name: Restore Build Cache | |
| uses: actions/cache@v5 | |
| with: | |
| path: build | |
| key: mfc-coverage-${{ steps.sys-info.outputs.sys-hash }}-${{ hashFiles('CMakeLists.txt', 'toolchain/dependencies/**', 'toolchain/cmake/**', 'src/**/*.fpp', 'src/**/*.f90') }} | |
| - name: Setup Ubuntu | |
| run: | | |
| sudo apt update -y | |
| sudo apt install -y tar wget make cmake gcc g++ python3 \ | |
| python3-dev "openmpi-*" libopenmpi-dev hdf5-tools \ | |
| libfftw3-dev libhdf5-dev libblas-dev liblapack-dev | |
| - name: Build | |
| run: /bin/bash mfc.sh build -v -j $(nproc) --gcov | |
| - name: Test | |
| run: /bin/bash mfc.sh test -v -a -j $(nproc) | |
| - name: Upload coverage reports to Codecov | |
| uses: codecov/codecov-action@v5 | |
| with: | |
| fail_ci_if_error: false | |
| verbose: true | |
| env: | |
| CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |