Skip to content

Commit 0f1659a

Browse files
committed
Chcek output
1 parent 08f0ce0 commit 0f1659a

File tree

1 file changed

+18
-4
lines changed

1 file changed

+18
-4
lines changed

.github/workflows/cuda.yml

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -256,13 +256,27 @@ jobs:
256256
echo "::endgroup::"
257257
258258
echo "::group::Run Voxtral Runner"
259-
259+
set +e
260260
export LD_LIBRARY_PATH=/opt/conda/lib:$LD_LIBRARY_PATH
261-
cmake-out/examples/models/voxtral/voxtral_runner \
261+
OUTPUT=$(cmake-out/examples/models/voxtral/voxtral_runner \
262262
--model_path model.pte \
263263
--data_path aoti_cuda_blob.ptd \
264264
--tokenizer_path tekken.json \
265265
--audio_path dancing.wav \
266266
--processor_path voxtral_preprocessor.pte \
267-
--temperature 0
268-
echo "::endgroup::"
267+
--temperature 0 2>&1)
268+
EXIT_CODE=$?
269+
set -e
270+
271+
echo "$OUTPUT"
272+
273+
if ! echo "$OUTPUT" | grep -iq "dancing"; then
274+
echo "Expected output 'dancing' not found in output"
275+
exit 1
276+
fi
277+
278+
if [ $EXIT_CODE -ne 0 ]; then
279+
echo "Unexpected exit code: $EXIT_CODE"
280+
exit $EXIT_CODE
281+
fi
282+
echo "::endgroup::"

0 commit comments

Comments
 (0)