-
Notifications
You must be signed in to change notification settings - Fork 4
51 lines (49 loc) · 1.63 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: "Build + Coverage"
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
schedule:
# Run once per day to detect broken dependencies.
- cron: '33 5 * * *'
jobs:
build:
strategy:
fail-fast: false
matrix:
include:
- ros_distribution: "humble"
os: "ubuntu-22.04"
- ros_distribution: "rolling"
os: "ubuntu-22.04"
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: ros-tooling/[email protected]
with:
use-ros2-testing: true
required-ros-distributions: ${{ matrix.ros_distribution }}
- name : Download and install dependencies
run: |
sudo apt-get install ros-${{ matrix.ros_distribution }}-rclc
sudo apt-get install ros-${{ matrix.ros_distribution }}-osrf-testing-tools-cpp
pip3 install pyOpenSSL --upgrade
pip3 install pydocstyle==6.1.1 # downgrade to fix https://github.com/ament/ament_lint/pull/428
- uses : ros-tooling/[email protected]
with:
package-name: "micro_ros_diagnostic_msgs micro_ros_diagnostic_updater micro_ros_common_diagnostics"
target-ros2-distro: ${{ matrix.ros_distribution }}
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
- uses: codecov/[email protected]
with:
file: ros_ws/lcov/total_coverage.info