Skip to content

Run Tests

Run Tests #5

Workflow file for this run

---
name: Run Tests
on:
workflow_call:
workflow_dispatch:
jobs:
industrial_ci:
name: Industrial CI
runs-on: ubuntu-24.04
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
ROS_DISTRO: [jazzy]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup ROS2 Workspace and Clone Repositories
run: |
mkdir -p src/rosbot_ros
find . -maxdepth 1 -not -name src -not -name . -exec mv {} src/rosbot_ros \;
python3 -m pip install -U vcstool
vcs import src < src/rosbot_ros/rosbot/hardware_deps.repos
vcs import src < src/rosbot_ros/rosbot/simulation_deps.repos
# Package micro_ros_msgs does not have industrial ci and tests does not pass.
# For more information see https://github.com/micro-ROS/micro_ros_msgs/issues/7
- name: Leave only ROSbot tests
shell: bash
run: |
sed '/if(BUILD_TESTING)/,/endif()/d' src/ros_components_description/CMakeLists.txt -i
- name: Running ROS Industrial CI
uses: ros-industrial/industrial_ci@master
env:
PIP_BREAK_SYSTEM_PACKAGES: 1
ROS_DISTRO: ${{matrix.ROS_DISTRO}}
DOCKER_IMAGE: ros:${{matrix.ROS_DISTRO}}-ros-base
IMMEDIATE_TEST_OUTPUT: true