Skip to content

Commit efa6e01

Browse files
committed
ci: update tests workflow with gazebo headless setup
1 parent d559fc1 commit efa6e01

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

.github/workflows/ros2_launch_tests.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,15 @@ jobs:
6363
fi
6464
pip install pytest pytest-timeout pytest-cov
6565
66+
- name: Configure Gazebo for headless rendering
67+
run: |
68+
echo "export GAZEBO_IP=127.0.0.1" >> $GITHUB_ENV
69+
echo "export OGRE_RTT_MODE=Copy" >> $GITHUB_ENV
70+
echo "export DISPLAY=:1" >> $GITHUB_ENV
71+
# Set up virtual framebuffer
72+
sudo apt-get install -y xvfb
73+
Xvfb :1 -screen 0 1280x1024x24 &
74+
6675
- name: Build workspace
6776
run: |
6877
source /opt/ros/humble/setup.bash

0 commit comments

Comments
 (0)