Skip to content

Commit a2c099d

Browse files
committed
.github/workflows/config.yml: [run pull/requet]
1 parent fbb0da7 commit a2c099d

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

.github/workflows/config.yml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
on:
2-
push:
3-
branches:
4-
- master
5-
pull_request:
1+
on: [push, pull_request]
62

73
env:
84
DISPLAY: ':0.0'
@@ -16,16 +12,19 @@ jobs:
1612
matrix:
1713
include:
1814
- ROS_DISTRO: melodic
15+
PYTHON_VERSION: python2
1916
- ROS_DISTRO: noetic
17+
PYTHON_VERSION: python3
2018

2119
container:
2220
image: ros:${{ matrix.ROS_DISTRO }}-ros-core
2321

2422
steps:
2523
- name: Chcekout
2624
uses: actions/checkout@v4
27-
with:
28-
submodules: true
25+
26+
- name: Update apt packages
27+
run: sudo apt update -y -qq
2928

3029
- name: Start X server
3130
run: |
@@ -39,6 +38,12 @@ jobs:
3938
xhost +local:root
4039
shell: bash
4140

41+
- name: Setup ROS
42+
run: |
43+
sudo apt -y -qq install ${{ matrix.PYTHON_VERSION }}-rosdep ${{ matrix.PYTHON_VERSION }}-catkin-tools
44+
sudo rosdep init
45+
rosdep update
46+
4247
- name: Setup Workspace
4348
run: |
4449
source /opt/ros/${{ matrix.ROS_DISTRO }}/setup.bash

0 commit comments

Comments
 (0)