Skip to content

empy dep for ros CI #313

empy dep for ros CI

empy dep for ros CI #313

Workflow file for this run

name: Crazyswarm ROS CI
on: [push, pull_request]
env:
ROS_CI_DESKTOP: "`lsb_release -cs`" # gives Ubuntu name, e.g. [precise|trusty|...]
ROS_PARALLEL_JOBS: "-j8 -l6"
jobs:
build:
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-20.04
ros: noetic
pyVer: python3
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install ROS
uses: ros-tooling/setup-ros@v0.2
with:
required-ros-distributions: ${{ matrix.ros }}
- name: Install Dependencies
run: |
sudo apt install -y ros-${{ matrix.ros }}-tf ros-${{ matrix.ros }}-tf-conversions ros-${{ matrix.ros }}-joy
sudo apt install -y libpcl-dev libusb-1.0-0-dev
sudo apt install -y swig lib${{ matrix.pyVer }}-dev ${{ matrix.pyVer }}-pip
${{ matrix.pyVer }} -m pip install pytest numpy PyYAML scipy empy
- name: Build
run: |
source /opt/ros/${{ matrix.ros }}/setup.bash
CSW_PYTHON=${{ matrix.pyVer }} ./build.sh
- name: Test
run: |
source ros_ws/devel/setup.bash
cd ros_ws/src/crazyswarm/scripts
${{ matrix.pyVer }} -m pytest --version
${{ matrix.pyVer }} -m pytest