diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d03688878..3c38b4d27 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 @@ -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 @@ -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 @@ -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: | @@ -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