Test: Modify FindMKL.cmake (DO NOT CLOSE OR MERGE) #159
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 Analysis | |
| on: | |
| pull_request: # 当有 PR 指向 develop 分支时触发 | |
| branches: | |
| - develop | |
| workflow_dispatch: | |
| push: | |
| tags: | |
| - 'v*' | |
| jobs: | |
| test-coverage: | |
| name: Generate Coverage Report | |
| runs-on: X64 | |
| container: ghcr.io/deepmodeling/abacus-gnu | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| - name: Install Requirements for Coverage Testing | |
| run: | | |
| apt update && apt install -y lcov gpg curl jq ca-certificates | |
| # mkdir externals | |
| # git submodule add git://github.com/RWTH-HPC/CMake-codecov.git externals/CMake-codecov | |
| - name: Building | |
| run: | | |
| rm -rf build/ | |
| rm -f CMakeCache.txt | |
| cmake -B build -DENABLE_COVERAGE=ON -DBUILD_TESTING=ON -DENABLE_MLALGO=ON -DENABLE_LIBXC=ON -DENABLE_LIBRI=ON -DENABLE_GOOGLEBENCH=ON -DENABLE_RAPIDJSON=ON | |
| cmake --build build -j`nproc` | |
| cmake --install build | |
| - name: Testing | |
| env: | |
| OMP_NUM_THREADS: 1 | |
| run: | | |
| cmake --build build --target test ARGS="-V --timeout 21600" || exit 0 | |
| - name: Generate Coverage Report | |
| run: | | |
| cmake --build build --target coverage | |
| - name: Upload Coverage to Codecov | |
| uses: codecov/codecov-action@v5 | |
| if: ${{ ! cancelled() }} | |
| with: | |
| fail_ci_if_error: true | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| skip_validation: true | |
| verbose: true |