use bgr8 for output visualization #205
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
on: [push, pull_request] | |
jobs: | |
ci: | |
runs-on: ubuntu-latest | |
name: ci | |
strategy: | |
matrix: | |
include: | |
- CHECK_PYTHON3_COMPILE : true | |
- TEST : catkin_lint | |
- TEST : clang-format | |
- TEST : clang-tidy | |
ROS_DISTRO : melodic | |
DOCKER_IMAGE : ubuntu:bionic | |
- ROS_DISTRO : hydro | |
DOCKER_IMAGE : ubuntu:precise | |
- OPENCV_VERSION : 2 | |
ROS_DISTRO : indigo | |
DOCKER_IMAGE : ubuntu:trusty | |
- OPENCV_VERSION : 3 | |
ROS_DISTRO : indigo | |
DOCKER_IMAGE : ubuntu:trusty | |
- ROS_DISTRO : kinetic | |
DOCKER_IMAGE : ubuntu:xenial | |
- ROS_DISTRO : melodic | |
DOCKER_IMAGE : ubuntu:bionic | |
- ROS_DISTRO : noetic | |
DOCKER_IMAGE : ubuntu:focal | |
- TEST : debian-unstable | |
DOCKER_IMAGE : debian:unstable | |
steps: | |
- name: Setup OS | |
run: | | |
sudo apt-get update -y | |
sudo apt-get upgrade -y | |
- name: Setup Git | |
run: | | |
sudo apt-get install -y git | |
- name: Chcekout | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
submodules: recursive | |
# python3_check | |
- name: python3_check | |
if: matrix.CHECK_PYTHON3_COMPILE == true | |
run: python3 -m compileall . | |
# catkin_lint | |
- name: catkin_lint setup | |
if: matrix.TEST == 'catkin_lint' | |
run: | | |
sudo apt-get install -y -q python3-pip | |
# See https://github.com/ros-perception/opencv_apps/pull/143 | |
# In catkin_lint > 1.6.18, cmake_minimum_required >= 2.8.12 | |
sudo pip3 install catkin_lint==1.6.18 rosdep | |
sudo rosdep init | |
rosdep update | |
- name: catkin_lint test | |
if: matrix.TEST == 'catkin_lint' | |
run: | | |
ROS_DISTRO=melodic catkin_lint --resolve-env --strict $PWD | |
# clang-format | |
- name: clang-format setup | |
if: matrix.TEST == 'clang-format' | |
run: | | |
sudo apt-get install -y -q clang-format git | |
- name: clang-format test | |
if: matrix.TEST == 'clang-format' | |
run: | | |
find $PWD -name '*.h' -or -name '*.hpp' -or -name '*.cpp' | xargs clang-format -i -style=file | |
git -C $PWD --no-pager diff | |
git -C $PWD diff-index --quiet HEAD -- . | |
- name: script | |
if: matrix.DOCKER_IMAGE | |
run: | | |
docker run --rm -i -v $PWD:$PWD -e "CI_SOURCE_PATH=$PWD" -e "HOME=$HOME" -e "ROS_DISTRO=${{ matrix.ROS_DISTRO }}" -e "OPENCV_VERSION=${{ matrix.OPENCV_VERSION }}" -e "TEST=${{ matrix.TEST }}" ${{ matrix.DOCKER_IMAGE }} sh -c "cd $PWD; /bin/bash .travis.sh" |