-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (40 loc) · 1.29 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
name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up ROS 2
run: |
sudo apt-get update -q
sudo apt-get install -y curl gnupg2 lsb-release
curl -s https://raw.githubusercontent.com/ros/rosdistro/master/ros.asc | sudo apt-key add -
sudo sh -c 'echo "deb http://packages.ros.org/ros2/ubuntu $(lsb_release -cs) main" > /etc/apt/sources.list.d/ros2-latest.list'
sudo apt-get update -q
sudo apt-get install -y ros-humble-desktop
- name: Setup ROS 2 dependencies
run: |
sudo apt-get update -q
sudo apt-get install -y python3-colcon-common-extensions
sudo apt-get install -y ros-humble-rclpy ros-humble-sensor-msgs ros-humble-geometry-msgs
- name: Source ROS 2 environment
shell: bash
run: |
source /opt/ros/humble/setup.bash
# source /ast_ws/install/setup.bash
- name: Install Python dependencies
run: |
python3 -m pip install --upgrade pip
pip3 install py_trees py_trees_ros
- name: Run tests
shell: bash
run: |
source /opt/ros/humble/setup.bash
ros2 launch my_pkg robot_safety_behaviour_tree.py