From 2a27ebb071a7056075c4aec06dac4de80a57d3e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20Hern=C3=A1ndez=20Cordero?= Date: Fri, 14 Jun 2024 11:09:40 +0200 Subject: [PATCH 1/2] Added Github action MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Alejandro Hernández Cordero --- .github/workflows/basic-build-ci.yaml | 37 +++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/basic-build-ci.yaml diff --git a/.github/workflows/basic-build-ci.yaml b/.github/workflows/basic-build-ci.yaml new file mode 100644 index 0000000..ced26fb --- /dev/null +++ b/.github/workflows/basic-build-ci.yaml @@ -0,0 +1,37 @@ +name: Basic Build Workflow + +on: + push: + branches: [rolling] + pull_request: + types: [opened, reopened, synchronize] + +jobs: + build-rolling: + runs-on: ubuntu-latest + strategy: + fail-fast: false + container: + image: osrf/ros2:testing + steps: + - name: Checkout repo + uses: actions/checkout@v4 + - name: Create Workspace + run: | + mkdir src_tmp + mv `find -maxdepth 1 -not -name . -not -name src_tmp` src_tmp/ + mv src_tmp/ src/ + - name: Install Prerequisites + run: | + bash -c 'source /opt/ros/$ROS_DISTRO/setup.bash; \ + apt-get update && apt-get upgrade -y && rosdep update; \ + rosdep install --from-paths src --ignore-src -y' + - name: Build Workspace + run: | + bash -c 'source /opt/ros/$ROS_DISTRO/setup.bash; \ + colcon build' + - name: Run Tests + run: | + bash -c 'source /opt/ros/$ROS_DISTRO/setup.bash; \ + colcon test; \ + colcon test-result --verbose' From 60a50851fffabd1a9125ccc60c6b9979a132caa5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20Hern=C3=A1ndez=20Cordero?= Date: Fri, 14 Jun 2024 11:14:43 +0200 Subject: [PATCH 2/2] make linters happy MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Alejandro Hernández Cordero --- test/test_joy_twist.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_joy_twist.py b/test/test_joy_twist.py index f16b8bf..f672a42 100644 --- a/test/test_joy_twist.py +++ b/test/test_joy_twist.py @@ -41,7 +41,7 @@ def setUp(self): automatically_declare_parameters_from_overrides=True) self.message_pump = launch_testing_ros.MessagePump(self.node, context=self.context) self.pub = self.node.create_publisher(sensor_msgs.msg.Joy, 'joy', 1) - if not hasattr(self, "cmd_vel_msg_type"): + if not hasattr(self, 'cmd_vel_msg_type'): self.cmd_vel_msg_type = geometry_msgs.msg.Twist self.sub = self.node.create_subscription(self.cmd_vel_msg_type, 'cmd_vel', self.callback, 1)