Skip to content

Import code

Import code #6

Workflow file for this run

---
name: test-build
on:
# Triggers the workflow on push or pull request events but
# only for the main branch
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
jobs:
vanilla-build:
runs-on: intellabs-01
container:
image: osrf/ros:humble-desktop
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Setup Dependencies
run: |
apt update
apt install -y python3-pip
xargs -a deb_requirements.txt apt install -y --no-install-recommends
rosdep update --rosdistro=humble
rosdep install --rosdistro=humble --from-paths . --ignore-src -r -y
pip3 install -r requirements.txt
- name: Build
shell: bash
run: |
source /opt/ros/humble/setup.bash
colcon build --continue-on-error
source install/setup.bash
- name: Test
shell: bash
run: |
source /opt/ros/humble/setup.bash
source install/setup.bash
export -n CYCLONEDDS_URI
export ROS_DOMAIN_ID=2
colcon test --packages-select \
scenario_execution_base \
scenario_execution \
scenario_execution_gazebo \
scenario_coverage \
--event-handlers console_direct+ \
--return-code-on-test-failure \
--pytest-with-coverage \
--pytest-args \
--junit-xml=TEST.xml
- name: Publish Test Results
uses: EnricoMi/publish-unit-test-result-action@283dea176069279a9076e77b548668a8e4f0c31b
if: always()
with:
files: |
scenario_execution_base//TEST.xml
scenario_execution//TEST.xml
scenario_execution_gazebo//TEST.xml
scenario_coverage//TEST.xml