From 9d3d8e584275e1d43f5b6ed6861d7755fd538a9b Mon Sep 17 00:00:00 2001 From: Josh Whitley Date: Wed, 21 Jan 2026 09:19:40 -0700 Subject: [PATCH] Skip tests for packages in src/external_dependencies if folder exists --- .github/workflows/workspace_integration_test.yaml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/workspace_integration_test.yaml b/.github/workflows/workspace_integration_test.yaml index 7a9fa3f..eac2b3c 100644 --- a/.github/workflows/workspace_integration_test.yaml +++ b/.github/workflows/workspace_integration_test.yaml @@ -110,6 +110,9 @@ jobs: . /opt/overlay_ws/install/setup.sh colcon build ${{ inputs.colcon_build_args }} ${{ steps.check_config_package.outputs.config_package_build_arg }} - name: Run colcon test + defaults: + run: + shell: bash run: | . /opt/ros/humble/setup.sh . /opt/underlay_ws/install/setup.sh @@ -121,7 +124,12 @@ jobs: export DISPLAY=:99 Xvfb :99 -screen 0 1024x768x24 & echo "Running colcon test" - colcon test --retest-until-pass 1 ${{ inputs.colcon_test_args }} ${{ steps.check_config_package.outputs.config_package_test_arg }} + external_packages="$(colcon list --base-paths src/external_dependencies --names-only || true)" + if [ -n "$external_packages" ]; then + colcon test --packages-skip $external_packages --retest-until-pass 1 ${{ inputs.colcon_test_args }} ${{ steps.check_config_package.outputs.config_package_test_arg }} + else + colcon test --retest-until-pass 1 ${{ inputs.colcon_test_args }} ${{ steps.check_config_package.outputs.config_package_test_arg }} + fi - if: always() run: | colcon test-result --verbose