Skip to content
Closed
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
53 changes: 53 additions & 0 deletions .github/workflows/coverage-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Coverage Build
on:
pull_request:
branches:
- main

jobs:
coverage:
name: coverage build
runs-on: ubuntu-22.04
container:
image: ubuntu:noble
strategy:
fail-fast: false
env:
ROS_DISTRO: rolling
ros_version: 2
steps:
- uses: ros-tooling/[email protected]
with:
required-ros-distributions: ${{ env.ROS_DISTRO }}
use-ros2-testing: true
- uses: actions/checkout@v5
- uses: ros-tooling/[email protected]
with:
target-ros2-distro: ${{ env.ROS_DISTRO }}
# build all packages listed in the meta package
package-name:
ur_calibration
ur_controllers
ur_robot_driver
colcon-defaults: |
{
"build": {
"mixin": ["coverage-gcc", "coverage-pytest"]
},
"test": {
"mixin": ["coverage-pytest"]
}
}
colcon-mixin-repository: https://raw.githubusercontent.com/colcon/colcon-mixin-repository/master/index.yaml
skip-tests: false
- uses: codecov/codecov-action@v5
with:
fail_ci_if_error: true
file: ros_ws/lcov/total_coverage.info
flags: unittests
name: codecov-umbrella
token: ${{ secrets.CODECOV_TOKEN }}
- uses: actions/upload-artifact@v5
with:
name: colcon-logs-${{ matrix.os }}
path: ros_ws/log