#148 fix mask size for 4D images (#149) #235
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 | |
| on: [push, pull_request] | |
| permissions: | |
| contents: read | |
| jobs: | |
| Coverage: | |
| runs-on: ubuntu-24.04-gpu | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Install CUDA Toolkit | |
| uses: Jimver/cuda-toolkit@master | |
| with: | |
| cuda: '12.6.3' | |
| method: network | |
| sub-packages: '["toolkit"]' | |
| use-github-cache: false | |
| use-local-cache: false | |
| - name: Install Catch2 | |
| run: | | |
| git clone https://github.com/catchorg/Catch2.git | |
| cd Catch2 | |
| cmake -Bbuild -H. -DBUILD_TESTING=OFF | |
| sudo cmake --build build/ --target install --config Debug | |
| - name: Configure NiftyReg | |
| run: | | |
| mkdir build && cd build | |
| cmake -DCMAKE_C_COMPILER=gcc \ | |
| -DCMAKE_CXX_COMPILER=g++ \ | |
| -DCMAKE_BUILD_TYPE=Debug \ | |
| -DBUILD_ALL_DEP=ON \ | |
| -DUSE_CUDA=ON \ | |
| -DUSE_OPENCL=OFF \ | |
| -DUSE_SSE=OFF \ | |
| -DUSE_OPENMP=OFF \ | |
| -DBUILD_TESTING=ON \ | |
| -DWITH_COVERAGE=ON \ | |
| .. | |
| - name: Build NiftyReg | |
| run: cmake --build build --config Debug | |
| - name: Run tests | |
| working-directory: build | |
| run: ctest -V | |
| - name: Coverage | |
| working-directory: build | |
| run: make coverage | |
| - name: Upload coverage to Codecov | |
| uses: codecov/codecov-action@v5 | |
| with: | |
| directory: build | |
| env: | |
| CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |