Skip to content

Commit 2a95e0f

Browse files
committed
Action: Use = for arguments
1 parent 0bf87ff commit 2a95e0f

1 file changed

Lines changed: 17 additions & 13 deletions

File tree

.github/actions/partdiff_tester/action.yaml

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -81,32 +81,36 @@ runs:
8181
cd "$GITHUB_ACTION_PATH"
8282
8383
ARGS=(
84-
--executable "${{ inputs.executable }}"
85-
--strictness "${{ inputs.strictness }}"
86-
--max-num-tests "${{ inputs.max_num_tests }}"
87-
--reference-source "${{ inputs.reference_source }}"
88-
--num-threads "${{ inputs.num_threads }}"
89-
--allow-extra-iterations "${{ inputs.allow_extra_iterations }}"
90-
--cwd "${{ inputs.cwd }}"
84+
--executable="${{ inputs.executable }}"
85+
--strictness="${{ inputs.strictness }}"
86+
--max-num-tests="${{ inputs.max_num_tests }}"
87+
--reference-source="${{ inputs.reference_source }}"
88+
--num-threads="${{ inputs.num_threads }}"
89+
--allow-extra-iterations="${{ inputs.allow_extra_iterations }}"
90+
--cwd="${{ inputs.cwd }}"
9191
)
9292
9393
if [ "${{ inputs.valgrind }}" = "true" ]; then
9494
ARGS+=(--valgrind)
9595
fi
9696
9797
for f in $(echo '${{ inputs.filter }}' | jq -r '.[]'); do
98-
ARGS+=(--filter "$f")
98+
ARGS+=(--filter="$f")
9999
done
100100
101101
if [ -n "${{ inputs.shuffle }}" ]; then
102-
ARGS+=(--shuffle "${{ inputs.shuffle }}")
102+
ARGS+=(--shuffle="${{ inputs.shuffle }}")
103103
fi
104104
105105
if [ -n "${{ inputs.timeout }}" ]; then
106-
ARGS+=(--timeout "${{ inputs.timeout }}")
106+
ARGS+=(--timeout="${{ inputs.timeout }}")
107107
fi
108+
109+
PARTDIFF_TESTER_CMD=(
110+
uv run pytest -n auto --verbose "${ARGS[@]}"
111+
)
108112
109-
echo "Running partdiff_tester with args:"
110-
echo "${ARGS[@]}"
113+
echo "Running partdiff_tester:"
114+
echo "${PARTDIFF_TESTER_CMD[@]}"
111115
112-
uv run pytest -n auto --verbose "${ARGS[@]}"
116+
"${PARTDIFF_TESTER_CMD[@]}"

0 commit comments

Comments
 (0)