Skip to content

Commit

Permalink
coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
N-Maas committed Nov 21, 2024
1 parent 6a4cbcd commit b790d41
Showing 1 changed file with 41 additions and 34 deletions.
75 changes: 41 additions & 34 deletions .github/workflows/master_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,40 +78,47 @@ jobs:
# exit 1
# fi

# mt_kahypar_test_suite:
# name: Test Suite
# runs-on: ubuntu-24.04
# env:
# CI_ACTIVE : 1

# steps:
# - name: Checkout HEAD
# uses: actions/checkout@v3

# - name: Install Dependencies
# run: |
# sudo apt-get install libtbb-dev libhwloc-dev libboost-program-options-dev lcov gcovr

# - name: Install Mt-KaHyPar Test Suite
# run: |
# rm -rf build
# mkdir build
# cd build
# cmake .. --preset=dev -DCMAKE_BUILD_TYPE=DEBUG -DKAHYPAR_CI_BUILD=ON -DKAHYPAR_USE_GCOV=ON
# make -j2 mtkahypar_tests

# - name: Run Mt-KaHyPar Tests
# run: |
# cd build
# ./tests/mtkahypar_tests

# - name: Report Code Coverage
# run: |
# cd build
# lcov --directory . --capture --output-file coverage.info --exclude '/usr/**/*' --exclude 'external_tools/**/*' --exclude 'tests/**/*' --exclude '**/googletest-src/**/*'
# lcov --remove coverage.info '/usr/*' --output-file coverage.info
# lcov --list coverage.info
# gcovr -r ../ -x > report.xml
mt_kahypar_test_suite:
name: Test Suite
strategy:
matrix:
compiler: [ { os: ubuntu-24.04, cpp: g++-14, cc: gcc-14, install_cmd: g++-14 gcc-14 },
{ os: ubuntu-22.04, cpp: g++-11, cc: gcc-11, install_cmd: g++-11 gcc-11 } ]
runs-on: ${{ matrix.compiler.os }}
env:
CI_ACTIVE : 1

steps:
- name: Checkout HEAD
uses: actions/checkout@v3

- name: Install Dependencies
run: |
sudo apt-get install libtbb-dev libhwloc-dev libboost-program-options-dev lcov gcovr
- name: Install Mt-KaHyPar Test Suite
env:
CC: ${{ matrix.compiler.cc }}
CXX: ${{ matrix.compiler.cpp }}
run: |
rm -rf build
mkdir build
cd build
cmake .. --preset=dev -DCMAKE_BUILD_TYPE=DEBUG -DKAHYPAR_CI_BUILD=ON -DKAHYPAR_USE_GCOV=ON
make -j2 mtkahypar_tests
- name: Run Mt-KaHyPar Tests
run: |
cd build
./tests/mtkahypar_tests
- name: Report Code Coverage
run: |
cd build
lcov --directory . --capture --output-file coverage.info --exclude 'external_tools/**/*' --exclude 'tests/**/*' --exclude '**/googletest-src/**/*'
lcov --remove coverage.info '/usr/**/*' --output-file coverage.info
lcov --list coverage.info
gcovr -r ../ -x > report.xml
# cd ..
# bash <(curl -s https://codecov.io/bash) || echo "Codecov did not collect coverage reports"

Expand Down

0 comments on commit b790d41

Please sign in to comment.