Skip to content

Commit aecd046

Browse files
committed
Run gcov from the container
1 parent c134838 commit aecd046

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

.github/workflows/tests-ubuntu.yaml

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ jobs:
6969
strategy:
7070
fail-fast: false
7171
matrix:
72-
image: ['oldest', 'latest']
73-
backend: ['cpu', 'cuda', 'hip']
72+
image: ['latest']
73+
backend: ['cpu']
7474
needs: id_repo
7575
runs-on: ubuntu-latest
7676
permissions:
@@ -149,9 +149,6 @@ jobs:
149149
run: |
150150
docker load < ${{matrix.image}}_${{matrix.backend.name}}.tar
151151
rm ${{matrix.image}}_${{matrix.backend.name}}.tar
152-
- name: Install gcovr
153-
run: |
154-
pipx install gcovr
155152
- name: Coverage test
156153
run: |
157154
cat<<-'EOF' > run.sh
@@ -175,20 +172,20 @@ jobs:
175172
176173
cmake --build build
177174
ctest --test-dir build
175+
176+
/root/.local/bin/gcovr \
177+
--exclude-throw-branches \
178+
--filter include/ddc \
179+
--lcov coverage.lcov \
180+
--merge-mode-functions=merge-use-line-0 \
181+
build
178182
EOF
179183
180184
docker run \
181185
--workdir ${{github.workspace}} \
182186
--volume ${{github.workspace}}:${{github.workspace}} \
183187
ghcr.io/cexa-project/ddc/${{matrix.image}}_${{matrix.backend.name}}:${GITHUB_SHA:0:7} \
184188
bash run.sh
185-
186-
gcovr \
187-
--exclude-throw-branches \
188-
--filter include/ddc \
189-
--lcov coverage.lcov \
190-
--merge-mode-functions=merge-use-line-0 \
191-
build
192189
- name: Upload coverage reports to Codecov with GitHub Action
193190
uses: codecov/codecov-action@ad3126e916f78f00edff4ed0317cf185271ccc2d # v5.4.2
194191
with:
@@ -197,7 +194,7 @@ jobs:
197194
token: ${{secrets.CODECOV_TOKEN}}
198195

199196
test:
200-
if: github.ref_name != 'main'
197+
if: false
201198
strategy:
202199
fail-fast: false
203200
matrix:
@@ -389,7 +386,7 @@ jobs:
389386
report_paths: '${{github.workspace}}/tests.xml'
390387

391388
test-with-sanitizer:
392-
if: github.ref_name != 'main'
389+
if: false
393390
strategy:
394391
fail-fast: false
395392
matrix:
@@ -488,7 +485,7 @@ jobs:
488485
report_paths: '${{github.workspace}}/tests.xml'
489486

490487
clang-tidy-test:
491-
if: github.ref_name != 'main'
488+
if: false
492489
strategy:
493490
fail-fast: false
494491
matrix:

docker/latest/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ RUN chmod +x /bin/bash_run \
5151
liblapacke-dev \
5252
libhwloc-dev \
5353
pkg-config \
54+
pipx \
55+
&& python3 -m pipx install gcovr \
56+
&& python3 -m pipx ensurepath \
5457
# Installing cmake < 3.28 to workaround issue with Kokkos
5558
&& wget https://github.com/Kitware/CMake/releases/download/v3.27.9/cmake-3.27.9-linux-x86_64.tar.gz \
5659
&& tar -xvf cmake-3.27.9-linux-x86_64.tar.gz --directory /opt \

0 commit comments

Comments
 (0)