Skip to content

Commit c859569

Browse files
authored
[CI] Update coverage workflows and some cleanup (backport #819) (#828)
1 parent 3e0fd9e commit c859569

File tree

6 files changed

+150
-10
lines changed

6 files changed

+150
-10
lines changed
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
name: Coverage Build - Humble
2+
on:
3+
workflow_dispatch:
4+
push:
5+
branches:
6+
- humble
7+
pull_request:
8+
branches:
9+
- humble
10+
11+
jobs:
12+
coverage:
13+
name: coverage build
14+
runs-on: ubuntu-22.04
15+
strategy:
16+
fail-fast: false
17+
env:
18+
ROS_DISTRO: humble
19+
steps:
20+
- uses: ros-tooling/[email protected]
21+
with:
22+
required-ros-distributions: ${{ env.ROS_DISTRO }}
23+
- uses: actions/checkout@v4
24+
- uses: ros-tooling/[email protected]
25+
with:
26+
target-ros2-distro: ${{ env.ROS_DISTRO }}
27+
import-token: ${{ secrets.GITHUB_TOKEN }}
28+
# build all packages listed here
29+
package-name:
30+
ackermann_steering_controller
31+
admittance_controller
32+
bicycle_steering_controller
33+
diff_drive_controller
34+
effort_controllers
35+
force_torque_sensor_broadcaster
36+
forward_command_controller
37+
gripper_controllers
38+
imu_sensor_broadcaster
39+
joint_state_broadcaster
40+
joint_trajectory_controller
41+
position_controllers
42+
range_sensor_broadcaster
43+
steering_controllers_library
44+
tricycle_controller
45+
tricycle_steering_controller
46+
velocity_controllers
47+
48+
vcs-repo-file-url: |
49+
https://raw.githubusercontent.com/${{ github.repository }}/${{ github.sha }}/ros2_controllers.${{ env.ROS_DISTRO }}.repos?token=${{ secrets.GITHUB_TOKEN }}
50+
colcon-defaults: |
51+
{
52+
"build": {
53+
"mixin": ["coverage-gcc"]
54+
}
55+
}
56+
colcon-mixin-repository: https://raw.githubusercontent.com/colcon/colcon-mixin-repository/master/index.yaml
57+
- uses: codecov/[email protected]
58+
with:
59+
file: ros_ws/lcov/total_coverage.info
60+
flags: unittests
61+
name: codecov-umbrella
62+
- uses: actions/[email protected]
63+
with:
64+
name: colcon-logs-coverage-humble
65+
path: ros_ws/log
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
name: Coverage Build - Iron
2+
on:
3+
workflow_dispatch:
4+
push:
5+
branches:
6+
- iron
7+
pull_request:
8+
branches:
9+
- iron
10+
11+
jobs:
12+
coverage:
13+
name: coverage build
14+
runs-on: ubuntu-22.04
15+
strategy:
16+
fail-fast: false
17+
env:
18+
ROS_DISTRO: iron
19+
steps:
20+
- uses: ros-tooling/[email protected]
21+
with:
22+
required-ros-distributions: ${{ env.ROS_DISTRO }}
23+
- uses: actions/checkout@v4
24+
- uses: ros-tooling/[email protected]
25+
with:
26+
target-ros2-distro: ${{ env.ROS_DISTRO }}
27+
import-token: ${{ secrets.GITHUB_TOKEN }}
28+
# build all packages listed here
29+
package-name:
30+
ackermann_steering_controller
31+
admittance_controller
32+
bicycle_steering_controller
33+
diff_drive_controller
34+
effort_controllers
35+
force_torque_sensor_broadcaster
36+
forward_command_controller
37+
gripper_controllers
38+
imu_sensor_broadcaster
39+
joint_state_broadcaster
40+
joint_trajectory_controller
41+
position_controllers
42+
range_sensor_broadcaster
43+
steering_controllers_library
44+
tricycle_controller
45+
tricycle_steering_controller
46+
velocity_controllers
47+
48+
vcs-repo-file-url: |
49+
https://raw.githubusercontent.com/${{ github.repository }}/${{ github.sha }}/ros2_controllers.${{ env.ROS_DISTRO }}.repos?token=${{ secrets.GITHUB_TOKEN }}
50+
colcon-defaults: |
51+
{
52+
"build": {
53+
"mixin": ["coverage-gcc"]
54+
}
55+
}
56+
colcon-mixin-repository: https://raw.githubusercontent.com/colcon/colcon-mixin-repository/master/index.yaml
57+
- uses: codecov/[email protected]
58+
with:
59+
file: ros_ws/lcov/total_coverage.info
60+
flags: unittests
61+
name: codecov-umbrella
62+
- uses: actions/[email protected]
63+
with:
64+
name: colcon-logs-coverage-iron
65+
path: ros_ws/log

.github/workflows/ci-coverage-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
velocity_controllers
4747

4848
vcs-repo-file-url: |
49-
https://raw.githubusercontent.com/${{ github.repository }}/${{ github.sha }}/ros2_controllers-not-released.${{ env.ROS_DISTRO }}.repos?token=${{ secrets.GITHUB_TOKEN }}
49+
https://raw.githubusercontent.com/${{ github.repository }}/${{ github.sha }}/ros2_controllers.${{ env.ROS_DISTRO }}.repos?token=${{ secrets.GITHUB_TOKEN }}
5050
colcon-defaults: |
5151
{
5252
"build": {

.github/workflows/reusable-ros-tooling-source-build.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,26 @@ jobs:
3838
ref: ${{ inputs.ref }}
3939
# build all packages listed in the meta package
4040
package-name:
41+
ackermann_steering_controller
42+
admittance_controller
43+
bicycle_steering_controller
4144
diff_drive_controller
45+
effort_controllers
46+
force_torque_sensor_broadcaster
47+
forward_command_controller
48+
gripper_controllers
49+
imu_sensor_broadcaster
50+
joint_state_broadcaster
51+
joint_trajectory_controller
52+
position_controllers
53+
range_sensor_broadcaster
54+
ros2_controllers
55+
ros2_controllers_test_nodes
56+
rqt_joint_trajectory_controller
57+
steering_controllers_library
58+
tricycle_controller
59+
tricycle_steering_controller
60+
velocity_controllers
4261

4362
vcs-repo-file-url: |
4463
https://raw.githubusercontent.com/ros2/ros2/${{ inputs.ros2_repo_branch }}/ros2.repos

ros2_controllers.iron.repos

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,6 @@ repositories:
1919
type: git
2020
url: https://github.com/ros-controls/kinematics_interface.git
2121
version: master
22-
angles:
23-
type: git
24-
url: https://github.com/ros/angles.git
25-
version: ros2
2622
generate_parameter_library:
2723
type: git
2824
url: https://github.com/picknikrobotics/generate_parameter_library.git

ros2_controllers.rolling.repos

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,10 @@ repositories:
1515
type: git
1616
url: https://github.com/ros-controls/control_toolbox.git
1717
version: ros2-master
18-
1918
kinematics_interface:
2019
type: git
2120
url: https://github.com/ros-controls/kinematics_interface.git
2221
version: master
23-
angles:
24-
type: git
25-
url: https://github.com/ros/angles.git
26-
version: ros2
2722
generate_parameter_library:
2823
type: git
2924
url: https://github.com/picknikrobotics/generate_parameter_library.git

0 commit comments

Comments
 (0)