Skip to content
Closed
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
11 changes: 9 additions & 2 deletions .github/workflows/nightly_coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,16 @@ jobs:
echo "$(python -c 'import site; print(site.USER_BASE)')/bin" >> $GITHUB_PATH
shell: bash

- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y lcov
shell: bash

- name: Install dependencies
run: |
python -m pip install --upgrade pip \
pybind11==3.0 \
cmake==3.30.0 \
ninja==1.11.1 \
pytest \
Expand All @@ -62,10 +69,10 @@ jobs:

CMAKE_GENERATOR="Unix Makefiles" \
CMAKE_BUILD_PARALLEL_LEVEL="$NPROC" \
CXXFLAGS="-fprofile-update=atomic" \
python -m pip install -v . \
--no-build-isolation \
--config-settings="cmake.build-type=COVERAGE" \
--config-settings='cmake.define.ENABLE_ZEN3="ON"'
--config-settings="cmake.build-type=COVERAGE"
shell: bash

- name: Run Python Tests with Coverage
Expand Down
2 changes: 1 addition & 1 deletion scripts/gcov.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ while getopts t:p:o:zk option; do
done

# Process sources
lcov -c -b "$source_base" -d . -o $project_name.lcov.info --gcov-tool=$gcov_tool --no-external || exit 1
lcov -c -b "$source_base" -d . -o $project_name.lcov.info --gcov-tool=$gcov_tool --no-external --keep-going || exit 1
eval $(echo lcov -r $project_name.lcov.info -o $project_name-filtered.lcov.info $filter_list) || exit 1

# Gather HTML files
Expand Down