Skip to content

Commit

Permalink
Fix path for tests in Git workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
hassansalehe committed Jun 12, 2021
1 parent 7bb4534 commit c75c398
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/C_Integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
# Note the current convention is to use the -S and -B options here to specify source
# and build directories, but this is only available with CMake 3.13 and higher.
# The CMake binaries on the Github Actions machines are (as of this writing) 3.12
run: cmake $GITHUB_WORKSPACE/src/unittests -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DCODE_COVERAGE=ON -DENABLE_COVERAGE=ON
run: cmake $GITHUB_WORKSPACE/test -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DCODE_COVERAGE=ON -DENABLE_COVERAGE=ON

- name: Build
working-directory: ${{runner.workspace}}/build
Expand All @@ -53,9 +53,9 @@ jobs:
run: |
find ${{runner.workspace}}/build -iname '*.gcno' -exec cp {} ./ \;
find ${{runner.workspace}}/build -iname '*.gcda' -exec cp {} ./ \;
gcov -o . ./tests/race_test.cpp --object-directory ./
gcov -o . ./test/common_tests --object-directory ./
lcov --directory . --capture --output-file coverage.info
lcov --remove coverage.info '/usr/*' '*/tests/*' --output-file coverage.info
lcov --remove coverage.info '/usr/*' '*/test/*' --output-file coverage.info
lcov --list coverage.info
bash <(curl -s https://codecov.io/bash) -X gcov -f coverage.info || echo "Failed to upload to Codecov"
Expand Down

0 comments on commit c75c398

Please sign in to comment.