From 828e6a28c034d3e15686bc3f8204d6a87f53592f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20Montan=CC=83ana?= Date: Sat, 19 Jul 2025 21:53:59 +0200 Subject: [PATCH] Update github workflow --- .github/workflows/build.yml | 19 ++++++++++--------- README.md | 4 +--- 2 files changed, 11 insertions(+), 12 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1a61499..a2611c8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 }} diff --git a/README.md b/README.md index a1e2a47..024c05b 100644 --- a/README.md +++ b/README.md @@ -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) # logo 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]