-
Notifications
You must be signed in to change notification settings - Fork 36
102 lines (101 loc) · 3.08 KB
/
test.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
name: Test
on:
pull_request:
push:
branches:
- main
jobs:
jammy_rolling:
runs-on: ubuntu-latest
env:
ROS_DISTRO: ${{ matrix.ros_distro }}
RMW_IMPLEMENTATION: rmw_cyclonedds_cpp
container:
image: rostooling/setup-ros-docker:ubuntu-jammy-ros-rolling-ros-base-latest
strategy:
fail-fast: false
matrix:
ros_distro: [rolling]
steps:
- name: checkout source
uses: actions/checkout@v4
- name: run apt-get update
run: sudo apt-get update
- name: run apt-get upgrade --list-upgradable
run: sudo apt-get update --list-upgradeable
- name: run apt upgrade python3-rosdep
run: sudo apt-get upgrade python3-rosdep -y
- name: Install Cyclone DDS
run: sudo apt install ros-${{ matrix.ros_distro }}-rmw-cyclonedds-cpp -y
- name: Build and run tests
id: action-ros-ci
uses: ros-tooling/[email protected]
with:
package-name: "opennav_coverage_demo"
target-ros2-distro: ${{ matrix.ros_distro }}
vcs-repo-file-url: "${{ github.workspace }}/.github/deps.repos"
colcon-defaults: |
{
"test": {
"packages-select": [
"opennav_coverage",
"opennav_coverage_bt",
"opennav_row_coverage",
"opennav_coverage_navigator",
"opennav_coverage_demo"
]
}
}
- uses: actions/upload-artifact@v1
with:
name: colcon-logs
path: ros_ws/log
noble_rolling:
runs-on: ubuntu-latest
env:
ROS_DISTRO: ${{ matrix.ros_distro }}
RMW_IMPLEMENTATION: rmw_cyclonedds_cpp
container:
image: rostooling/setup-ros-docker:ubuntu-noble-ros-rolling-ros-base-latest
strategy:
fail-fast: false
matrix:
ros_distro: [rolling]
steps:
- name: checkout source
uses: actions/checkout@v4
- name: run apt update
run: apt update
- name: run apt list --upgradable
run: apt list --upgradeable
- name: run apt upgrade python3-rosdep -y
run: apt upgrade python3-rosdep -y
- name: Unistall python nose - uses imp not supported python3.12
run: pip uninstall nose
env:
PIP_BREAK_SYSTEM_PACKAGES=1
- name: Install Cyclone DDS
run: sudo apt install ros-${{ matrix.ros_distro }}-rmw-cyclonedds-cpp -y
- name: Build and run tests
id: action-ros-ci
uses: ros-tooling/[email protected]
with:
package-name: "opennav_coverage_demo"
target-ros2-distro: ${{ matrix.ros_distro }}
vcs-repo-file-url: "${{ github.workspace }}/.github/deps.repos"
colcon-defaults: |
{
"test": {
"packages-select": [
"opennav_coverage",
"opennav_coverage_bt",
"opennav_row_coverage",
"opennav_coverage_navigator",
"opennav_coverage_demo"
]
}
}
- uses: actions/upload-artifact@v1
with:
name: colcon-logs
path: ros_ws/log