Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: Fix coverage job #41

Merged
merged 2 commits into from
Apr 26, 2024
Merged
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
9 changes: 4 additions & 5 deletions .ci_support/run_docker_linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,14 @@ ctest --output-on-failure --timeout 100 ${MAKEFLAGS}

# coverage
gcov `find lib/src/ -name "*.gcno"`
lcov --capture --directory ./lib/src/ -o coverage.info
lcov --remove coverage.info "/usr/include/*" -o coverage.info
genhtml coverage.info --output-directory ~/.local/share/doc/*/html/coverage
cp -v coverage.info ~/.local/share/doc/*/html/coverage
lcov --capture --directory . --output-file coverage.info --include "*.cxx"
genhtml --output-directory coverage coverage.info
cp -v coverage.info coverage

uid=$1
gid=$2
if test -n "${uid}" -a -n "${gid}"
then
sudo cp -r ~/.local/share/doc/*/html /io
sudo cp -r ~/.local/share/doc/*/html coverage /io
sudo chown -R ${uid}:${gid} /io/html
fi
3 changes: 1 addition & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ jobs:
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: openturns/otsvm
file: ./html/coverage/coverage.info
verbose: true
file: ./coverage/coverage.info

mingw:
runs-on: ubuntu-latest
Expand Down
8 changes: 0 additions & 8 deletions codecov.yml

This file was deleted.

1 change: 0 additions & 1 deletion lib/src/SVMKernelRegressionEvaluation.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ Point SVMKernelRegressionEvaluation::operator() (const Point & inP) const
if (lagrangeMultiplier_[i] != 0.0)
output += lagrangeMultiplier_[i] * kernel_(dataIn_[i], inP);
}
const Point result(1, output);
return Point(1, output);
}

Expand Down
6 changes: 0 additions & 6 deletions lib/src/SVMRegression.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -82,16 +82,10 @@ void SVMRegression::run()
Scalar bestTradeoffFactor = tradeoffFactor_[0];
Scalar bestKernelParameter = kernelParameter_[0];

Sample isoProbSample( size, inputDimension );
Function outputTransformation;
Function outputInverseTransformation;

Collection<Function> marginals;
Collection<Function> outputTransformationMarginals;

Point relativeError( outputDimension );
Point residu( outputDimension );
Point variance( outputDimension );

driver_.normalize(outputSample_, outputTransformation, outputInverseTransformation);
Sample normalizedOutputSample(outputTransformation(outputSample_));
Expand Down