Update github workflow

This commit is contained in:
2025-07-19 21:53:59 +02:00
parent 8f2a0015d9
commit 828e6a28c0
2 changed files with 11 additions and 12 deletions

View File

@@ -28,7 +28,7 @@ jobs:
run: |
sudo apt-get -y install lcov
sudo apt-get -y install gcovr
- name: Setup Conan profile
- name: Setup Conan profileson
run: |
conan profile detect --force
conan remote add cimmeria https://conan.rmontanana.es/artifactory/api/conan/Cimmeria
@@ -44,14 +44,15 @@ jobs:
cp -r tests/datasets build_debug/tests/datasets
cd build_debug/tests
ctest --output-on-failure -j 4
lcov --capture --directory ../ --demangle-cpp --ignore-errors source,source --ignore-errors mismatch,mismatch --ignore-errors inconsistent --output-file coverage.info --ignore-errors unused
lcov --remove coverage.info '/usr/*' --output-file coverage.info
lcov --remove coverage.info 'libtorch/*' --output-file coverage.info
lcov --remove coverage.info '../tests/*' --output-file coverage.info
lcov --remove coverage.info 'tests/*' --output-file coverage.info
lcov --remove coverage.info 'gtest/*' --output-file coverage.info
lcov --remove coverage.info '*/.conan2/*' --ignore-errors unused --output-file coverage.info
gcovr -f ../../src/CPPFImdlp.cpp -f ../../src/Metrics.cpp -f ../../src/BinDisc.cpp -f ../../src/Discretizer.cpp --txt --sonarqube=coverage.xml
lcov --capture --directory ../ --demangle-cpp --ignore-errors source,source --ignore-errors mismatch --ignore-errors inconsistent --output-file coverage.info --ignore-errors gcov >/dev/null 2>&1
lcov --remove coverage.info '/usr/*' --output-file coverage.info >/dev/null 2>&1
lcov --remove coverage.info 'lib/*' --output-file coverage.info >/dev/null 2>&1
lcov --remove coverage.info 'libtorch/*' --output-file coverage.info --ignore-errors unused >/dev/null 2>&1
lcov --remove coverage.info 'tests/*' --output-file coverage.info >/dev/null 2>&1
lcov --remove coverage.info 'gtest/*' --output-file coverage.info >/dev/null 2>&1
lcov --remove coverage.info '*/.conan2/*' --ignore-errors unused --output-file coverage.info >/dev/null 2>&1
genhtml coverage.info --demangle-cpp --output-directory coverage --title "Discretizer mdlp Coverage Report" -s -k -f --legend
gcovr -r ../../ -f ../src/CPPFImdlp.cpp -f ../src/Metrics.cpp -f ../src/BinDisc.cpp -f ../src/Discretizer.cpp --sonarqube=coverage.xml
- name: Run sonar-scanner
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View File

@@ -3,7 +3,7 @@
[![Reliability Rating](https://sonarcloud.io/api/project_badges/measure?project=rmontanana_mdlp&metric=reliability_rating)](https://sonarcloud.io/summary/new_code?id=rmontanana_mdlp)
[![Coverage Badge](https://img.shields.io/badge/Coverage-100,0%25-green)](html/index.html)
[![Ask DeepWiki](https://deepwiki.com/badge.svg)](https://deepwiki.com/rmontanana/mdlp)
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.14245443.svg)](https://doi.org/10.5281/zenodo.14245443)
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.16025501.svg)](https://doi.org/10.5281/zenodo.16025501)
# <img src="logo.png" alt="logo" width="50"/> mdlp
@@ -18,9 +18,7 @@ Other features:
- Intervals with the same value of the variable are not taken into account for cutpoints.
- Intervals have to have more than two examples to be evaluated (mdlp).
- The algorithm returns the cut points for the variable.
- The transform method uses the cut points returning its index in the following way:
cut[i - 1] <= x < cut[i]