Skip to content

Commit 73b6796

Browse files
committed
don't test r2s in regular CI
1 parent 9818e75 commit 73b6796

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

.github/workflows/ros-tests.yml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ jobs:
8888
run: |
8989
rosdep init
9090
rosdep update --include-eol-distros
91-
rosdep install --from-paths greenwave_monitor r2s_gw --rosdistro ${{ matrix.ros_distro }} --ignore-src -r -y
91+
rosdep install --from-paths greenwave_monitor --rosdistro ${{ matrix.ros_distro }} --ignore-src -r -y
9292
shell: bash
9393
env:
9494
DEBIAN_FRONTEND: noninteractive
@@ -108,7 +108,21 @@ jobs:
108108
run: |
109109
source /opt/ros/${{ matrix.ros_distro }}/setup.bash
110110
echo "Building and testing on ROS2 ${{ matrix.ros_distro }}"
111-
colcon build --packages-up-to r2s_gw
111+
colcon build --packages-up-to greenwave_monitor
112+
shell: bash
113+
114+
- name: Install r2s_gw with pip
115+
run: |
116+
source /opt/ros/${{ matrix.ros_distro }}/setup.bash
117+
source install/setup.bash
118+
cd r2s_gw
119+
if [[ "${{ matrix.ros_distro }}" == "jazzy" || \
120+
"${{ matrix.ros_distro }}" == "kilted" || \
121+
"${{ matrix.ros_distro }}" == "rolling" ]]; then
122+
pip3 install --break-system-packages -e .
123+
else
124+
pip3 install -e .
125+
fi
112126
shell: bash
113127

114128
- name: Smoke test README commands

0 commit comments

Comments
 (0)