readme #393
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Industrial CI | |
on: | |
workflow_call: | |
workflow_dispatch: | |
push: | |
jobs: | |
black: | |
name: Black | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Black | |
uses: psf/[email protected] | |
with: | |
options: --line-length=99 | |
spellcheck: | |
name: Spellcheck | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Spellcheck | |
uses: rojopolis/[email protected] | |
ros_industrial_ci: | |
name: ROS Industrial CI | |
runs-on: ubuntu-22.04 | |
timeout-minutes: 30 | |
needs: | |
- black | |
- spellcheck | |
strategy: | |
fail-fast: false | |
matrix: | |
ROS_DISTRO: [humble] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Act + Docker fix | |
run: | | |
sudo chown runner:docker /var/run/docker.sock | |
- name: Copy to src | |
run: | | |
mkdir -p src | |
find . -maxdepth 1 -not -name src -not -name . -exec mv {} src/ \; | |
- name: Clone installation requirements | |
shell: bash | |
run: | | |
python3 -m pip install -U vcstool | |
vcs import src < src/rosbot/rosbot_hardware.repos && | |
vcs import src < src/rosbot/rosbot_simulation.repos | |
- name: Copy only diff_drive_controller and imu_sensor_broadcaster, waits for features from ros2-control | |
shell: bash | |
run: | | |
cp -r src/ros2_controllers/diff_drive_controller src/ | |
cp -r src/ros2_controllers/imu_sensor_broadcaster src/ | |
rm -rf src/ros2_controllers | |
- name: Remove ign_ros2_control demo and tests | |
shell: bash | |
run: rm -rf src/gazebosim/gz_ros2_control/ign_ros2_control_demos src/gazebosim/gz_ros2_control/gz_ros2_control_tests | |
# 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: Remove tests from micro_ros_msgs | |
shell: bash | |
run: sed '/if(BUILD_TESTING)/,/endif()/d' src/micro_ros_msgs/CMakeLists.txt -i | |
- name: Running ROS Industrial CI | |
uses: ros-industrial/industrial_ci@master | |
env: | |
ROS_DISTRO: ${{matrix.ROS_DISTRO}} | |
DOCKER_IMAGE: ros:${{matrix.ROS_DISTRO}}-ros-base | |
IMMEDIATE_TEST_OUTPUT: true |