Skip to content

Commit

Permalink
Fix Coveralls path (#290)
Browse files Browse the repository at this point in the history
Signed-off-by: Michel Hidalgo <[email protected]>
  • Loading branch information
mhidalgo-bdai authored Mar 1, 2024
1 parent daa5760 commit 68cf947
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,20 +102,22 @@ jobs:
uses: actions/checkout@v4
with:
submodules: recursive
path: src

- name: Build packages
run: |
source /opt/ros/$ROS_DISTRO/setup.bash
colcon build --symlink-install --packages-skip-regex proto2ros --cmake-args -DCMAKE_CXX_FLAGS="--coverage"
working-directory: ${{ github.workspace }}/../../

- name: Test packages
run: |
source install/setup.bash
colcon test --python-testing pytest --pytest-with-coverage --event-handlers console_direct+ --packages-skip-regex bdai_ros2_wrappers proto2ros
working-directory: ${{ github.workspace }}/../../

- name: Generate coverage report
run: lcov -c -d build/spot_driver/ -o coverage_spot_driver.info --include "*/spot_driver/*" --exclude "*/test/*"
working-directory: ${{ github.workspace }}/../../

- name: Upload python coverage to Coveralls
uses: coverallsapp/github-action@v2
Expand All @@ -125,7 +127,7 @@ jobs:
flag-name: unittests-python
parallel: true
debug: true
files: $(find . -name "coverage.xml" -type f)
files: $(find ../../ -name "coverage.xml" -type f)

- name: Upload cpp coverage to Coveralls
uses: coverallsapp/github-action@v2
Expand All @@ -134,7 +136,7 @@ jobs:
fail-on-error: true
flag-name: unittests-cpp
debug: true
files: coverage_spot_driver.info
files: ../../coverage_spot_driver.info
format: lcov

- name: Aggregate coverage
Expand All @@ -143,9 +145,10 @@ jobs:
parallel-finished: true
carryforward: "unittests-python, unittests-cpp"

- name: Report on test results
- if: always()
name: Report on test results
run: colcon test-result --all --verbose
if: always()
working-directory: ${{ github.workspace }}/../../

- name: Build packages documentation
run: |
Expand All @@ -157,4 +160,3 @@ jobs:
sphinx-apidoc -f -o source/ ../ ../*setup* ../examples ../*launch.py ../*command_spot_driver.py
cd ..
sphinx-build docs _build -v
working-directory: ${{ github.workspace }}/src

0 comments on commit 68cf947

Please sign in to comment.