Skip to content

Commit 286ca21

Browse files
authored
Merge pull request #14 from PickNikRobotics/dont-test-external-dependencies
Skip Tests for Packages in src/external_dependencies if Folder Exists
2 parents 51c68c5 + 9d3d8e5 commit 286ca21

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/workspace_integration_test.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,9 @@ jobs:
110110
. /opt/overlay_ws/install/setup.sh
111111
colcon build ${{ inputs.colcon_build_args }} ${{ steps.check_config_package.outputs.config_package_build_arg }}
112112
- name: Run colcon test
113+
defaults:
114+
run:
115+
shell: bash
113116
run: |
114117
. /opt/ros/humble/setup.sh
115118
. /opt/underlay_ws/install/setup.sh
@@ -121,7 +124,12 @@ jobs:
121124
export DISPLAY=:99
122125
Xvfb :99 -screen 0 1024x768x24 &
123126
echo "Running colcon test"
124-
colcon test --retest-until-pass 1 ${{ inputs.colcon_test_args }} ${{ steps.check_config_package.outputs.config_package_test_arg }}
127+
external_packages="$(colcon list --base-paths src/external_dependencies --names-only || true)"
128+
if [ -n "$external_packages" ]; then
129+
colcon test --packages-skip $external_packages --retest-until-pass 1 ${{ inputs.colcon_test_args }} ${{ steps.check_config_package.outputs.config_package_test_arg }}
130+
else
131+
colcon test --retest-until-pass 1 ${{ inputs.colcon_test_args }} ${{ steps.check_config_package.outputs.config_package_test_arg }}
132+
fi
125133
- if: always()
126134
run: |
127135
colcon test-result --verbose

0 commit comments

Comments
 (0)