88 workflow_dispatch :
99
1010env :
11- WORKSPACE_DIR : /opt/jderobot
11+ WORLDS_DIR : /opt/jderobot
1212 ROS_DISTRO : humble
1313
1414jobs :
@@ -19,18 +19,20 @@ jobs:
1919 steps :
2020 - name : Create checkout directory with proper permissions
2121 run : |
22- sudo mkdir -p ${{ env.WORKSPACE_DIR }}
23- sudo chmod -R 777 ${{ env.WORKSPACE_DIR }}
22+ sudo mkdir -p ${{ env.WORLDS_DIR }}
23+ sudo chmod -R 777 ${{ env.WORLDS_DIR }}
2424
2525 - name : Checkout repository
2626 uses : actions/checkout@v3
27- with :
28- path : ${{ env.WORKSPACE_DIR }}
27+
28+ - name : copy worlds
29+ run : |
30+ sudo cp -r ${{ github.workspace }}/Worlds ${{ env.WORLDS_DIR }}
2931
3032 - name : Setup ROS 2 Humble
3133 uses : ros-tooling/setup-ros@v0.6
3234 with :
33- required-ros-distributions : ${{ env.ROS_DISTRO }}
35+ required-ros-distributions : humble
3436
3537 - name : Install Gazebo and dependencies
3638 run : |
@@ -41,12 +43,13 @@ jobs:
4143 ros-humble-joint-state-publisher ros-humble-robot-state-publisher \
4244 ros-humble-nav2-msgs ros-humble-turtlebot3*
4345 sudo apt-get install -y gazebo libgazebo-dev
46+ # Install any additional dependencies your project needs
4447
4548 - name : Setup Python dependencies
4649 run : |
4750 python -m pip install --upgrade pip
48- if [ -f ${WORKSPACE_DIR}/ test/requirements.txt ]; then
49- pip install -r ${WORKSPACE_DIR}/ test/requirements.txt
51+ if [ -f test/requirements.txt ]; then
52+ pip install -r test/requirements.txt
5053 fi
5154 pip install pytest pytest-timeout pytest-cov
5255
6366 # source /opt/ros/humble/setup.bash
6467 # source /usr/share/gazebo/setup.sh
6568 # colcon build --symlink-install --packages-select custom_robots
66- - name : Build custom_robots package
67- run : |
68- source /opt/ros/humble/setup.bash
69- source /usr/share/gazebo/setup.sh
70- colcon build --symlink-install --packages-select custom_robots
69+
7170 - name : Run launch tests
7271 run : |
7372 source /opt/ros/humble/setup.bash
0 commit comments