Skip to content

Commit

Permalink
feat: add packages to skip
Browse files Browse the repository at this point in the history
  • Loading branch information
dkoldaev committed Mar 10, 2025
1 parent 334497e commit bce57c3
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions colcon-test/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ inputs:
target-packages:
description: ""
required: true
packages-skip:
description: "Packages to skip during testing"
required: false
default: ""
build-depends-repos:
description: ""
required: false
Expand Down Expand Up @@ -86,9 +90,16 @@ runs:
--verbose \
--packages-above ${{ inputs.target-packages }}
# Build skip packages argument if packages-skip is provided
skip_packages_arg=""
if [ -n "${{ inputs.packages-skip }}" ]; then
skip_packages_arg="--packages-skip ${{ inputs.packages-skip }}"
fi
colcon test --event-handlers console_cohesion+ \
--mixin coverage-pytest \
--packages-above ${{ inputs.target-packages }} \
$skip_packages_arg \
--executor sequential \
--return-code-on-test-failure
Expand Down

0 comments on commit bce57c3

Please sign in to comment.