-
Notifications
You must be signed in to change notification settings - Fork 334
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CI] Update coverage workflows and some cleanup (#819)
* Add CI coverage jobs for humble and iron * Add all packages to source build * Update repos files * Build ros-control packages from source * use humble job names Co-authored-by: Christoph Fröhlich <[email protected]> --------- Co-authored-by: Bence Magyar <[email protected]> (cherry picked from commit 232154d) # Conflicts: # ros2_controllers.iron.repos
- Loading branch information
1 parent
cc84c5b
commit 8cd7d61
Showing
6 changed files
with
171 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
name: Coverage Build - Humble | ||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- humble | ||
pull_request: | ||
branches: | ||
- humble | ||
|
||
jobs: | ||
coverage: | ||
name: coverage build | ||
runs-on: ubuntu-22.04 | ||
strategy: | ||
fail-fast: false | ||
env: | ||
ROS_DISTRO: humble | ||
steps: | ||
- uses: ros-tooling/[email protected] | ||
with: | ||
required-ros-distributions: ${{ env.ROS_DISTRO }} | ||
- uses: actions/checkout@v4 | ||
- uses: ros-tooling/[email protected] | ||
with: | ||
target-ros2-distro: ${{ env.ROS_DISTRO }} | ||
import-token: ${{ secrets.GITHUB_TOKEN }} | ||
# build all packages listed here | ||
package-name: | ||
ackermann_steering_controller | ||
admittance_controller | ||
bicycle_steering_controller | ||
diff_drive_controller | ||
effort_controllers | ||
force_torque_sensor_broadcaster | ||
forward_command_controller | ||
gripper_controllers | ||
imu_sensor_broadcaster | ||
joint_state_broadcaster | ||
joint_trajectory_controller | ||
position_controllers | ||
range_sensor_broadcaster | ||
steering_controllers_library | ||
tricycle_controller | ||
tricycle_steering_controller | ||
velocity_controllers | ||
|
||
vcs-repo-file-url: | | ||
https://raw.githubusercontent.com/${{ github.repository }}/${{ github.sha }}/ros2_controllers.${{ env.ROS_DISTRO }}.repos?token=${{ secrets.GITHUB_TOKEN }} | ||
colcon-defaults: | | ||
{ | ||
"build": { | ||
"mixin": ["coverage-gcc"] | ||
} | ||
} | ||
colcon-mixin-repository: https://raw.githubusercontent.com/colcon/colcon-mixin-repository/master/index.yaml | ||
- uses: codecov/[email protected] | ||
with: | ||
file: ros_ws/lcov/total_coverage.info | ||
flags: unittests | ||
name: codecov-umbrella | ||
- uses: actions/[email protected] | ||
with: | ||
name: colcon-logs-coverage-humble | ||
path: ros_ws/log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
name: Coverage Build - Iron | ||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- iron | ||
pull_request: | ||
branches: | ||
- iron | ||
|
||
jobs: | ||
coverage: | ||
name: coverage build | ||
runs-on: ubuntu-22.04 | ||
strategy: | ||
fail-fast: false | ||
env: | ||
ROS_DISTRO: iron | ||
steps: | ||
- uses: ros-tooling/[email protected] | ||
with: | ||
required-ros-distributions: ${{ env.ROS_DISTRO }} | ||
- uses: actions/checkout@v4 | ||
- uses: ros-tooling/[email protected] | ||
with: | ||
target-ros2-distro: ${{ env.ROS_DISTRO }} | ||
import-token: ${{ secrets.GITHUB_TOKEN }} | ||
# build all packages listed here | ||
package-name: | ||
ackermann_steering_controller | ||
admittance_controller | ||
bicycle_steering_controller | ||
diff_drive_controller | ||
effort_controllers | ||
force_torque_sensor_broadcaster | ||
forward_command_controller | ||
gripper_controllers | ||
imu_sensor_broadcaster | ||
joint_state_broadcaster | ||
joint_trajectory_controller | ||
position_controllers | ||
range_sensor_broadcaster | ||
steering_controllers_library | ||
tricycle_controller | ||
tricycle_steering_controller | ||
velocity_controllers | ||
|
||
vcs-repo-file-url: | | ||
https://raw.githubusercontent.com/${{ github.repository }}/${{ github.sha }}/ros2_controllers.${{ env.ROS_DISTRO }}.repos?token=${{ secrets.GITHUB_TOKEN }} | ||
colcon-defaults: | | ||
{ | ||
"build": { | ||
"mixin": ["coverage-gcc"] | ||
} | ||
} | ||
colcon-mixin-repository: https://raw.githubusercontent.com/colcon/colcon-mixin-repository/master/index.yaml | ||
- uses: codecov/[email protected] | ||
with: | ||
file: ros_ws/lcov/total_coverage.info | ||
flags: unittests | ||
name: codecov-umbrella | ||
- uses: actions/[email protected] | ||
with: | ||
name: colcon-logs-coverage-iron | ||
path: ros_ws/log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
repositories: | ||
ros2_control: | ||
type: git | ||
url: https://github.com/ros-controls/ros2_control.git | ||
version: iron | ||
realtime_tools: | ||
type: git | ||
url: https://github.com/ros-controls/realtime_tools.git | ||
version: master | ||
control_msgs: | ||
type: git | ||
url: https://github.com/ros-controls/control_msgs.git | ||
version: master | ||
control_toolbox: | ||
type: git | ||
url: https://github.com/ros-controls/control_toolbox.git | ||
version: ros2-master | ||
kinematics_interface: | ||
type: git | ||
url: https://github.com/ros-controls/kinematics_interface.git | ||
version: master |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters