Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .ci/code_coverage.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ def build_with_cmake():

def run_tests():
subprocess.run(["ctest", "--test-dir", "cmake-build-unit-tests", "-j4", "--output-on-failure"], check=True)
subprocess.run(["ctest", "--test-dir", "cmake-build-unit-tests","-T", "memcheck", "-j4", "--output-on-failure"], check=True)

def generate_coverage():
# Capture coverage data
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/code-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ jobs:
mv line_coverage_badge.svg coverage_badges/
mv function_coverage_badge.svg coverage_badges/
zip -r coverage_badges.zip coverage_badges
mkdir memory-check
mv cmake-build-unit-tests/Testing memory-check
zip -r memory-check.zip memory-check

- name: Upload code coverage artifact
uses: actions/upload-artifact@v4
Expand All @@ -80,6 +83,12 @@ jobs:
name: coverage_badges
path: coverage_badges.zip

- name: Upload Memory Check log
uses: actions/upload-artifact@v4
with:
name: memory-check
path: memory-check.zip

- name: Copy updated sccache out of Docker volume
run: |
mkdir -p sccache_backup
Expand Down
1 change: 1 addition & 0 deletions docker/Dockerfile.dev
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ RUN for i in 1 2 3; do \
g++-11 \
lcov \
iputils-ping \
valgrind \
&& rm -rf /var/lib/apt/lists/* \
&& break || { echo "Apt install failed, retrying ($i/3)..."; sleep 10; }; \
done
Expand Down