feat: high level ros2 generic api #1388
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: build and test | |
on: | |
pull_request: | |
types: [opened, synchronize, reopened, edited, ready_for_review] | |
branches: | |
- development | |
jobs: | |
build-and-test-ros2: | |
if: github.event.pull_request.draft == false | |
runs-on: | |
- self-hosted | |
- ${{ matrix.ros_distro }} | |
continue-on-error: true | |
strategy: | |
matrix: | |
ros_distro: | |
- jazzy | |
- humble | |
container: | |
image: osrf/ros:${{ matrix.ros_distro }}-desktop-full | |
steps: | |
- name: Clean up workspace | |
run: | | |
ls -la $GITHUB_WORKSPACE | |
rm -rf $GITHUB_WORKSPACE/* || true | |
rm -rf $GITHUB_WORKSPACE/.??* || true | |
ls -la $GITHUB_WORKSPACE | |
- uses: actions/checkout@v4 | |
- name: Install Poetry | |
uses: snok/install-poetry@v1 | |
- name: Create virtual audio device | |
run: | | |
apt-get update | |
DEBIAN_FRONTEND=noninteractive apt-get --yes install jackd | |
jackd -d dummy -r 44100 & | |
- name: Install python dependencies | |
run: poetry install --with openset,nomad | |
- name: Update rosdep | |
shell: bash | |
run: | | |
rosdep update | |
- name: Install ROS 2 package dependencies | |
shell: bash | |
run: | | |
apt-get update | |
rosdep install --from-paths src --ignore-src -r -y | |
- name: Build the workspace | |
shell: bash | |
run: | | |
source /opt/ros/${{ matrix.ros_distro }}/setup.bash | |
colcon build | |
- name: Run tests | |
shell: bash | |
run: | | |
source /opt/ros/${{ matrix.ros_distro }}/setup.bash | |
source install/setup.bash | |
poetry run pytest -m "not billable" |