Skip to content

Commit 0295098

Browse files
committed
fix: Update example glob patterns for consistency and exclude unstable example from CI
1 parent 094dab6 commit 0295098

1 file changed

Lines changed: 15 additions & 9 deletions

File tree

.github/workflows/test-python-examples.yml

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ on:
2727
description: "Glob pattern(s) for examples to run (space-separated, relative to bindings/python/examples)."
2828
required: false
2929
type: string
30-
default: "0[1-9]_*.py 1[0-9]_*.py 2[0-1]_*.py"
30+
default: "0[1-9]_*.py 1[0-9]_*.py 2[0-9]_*.py"
3131
build-version:
3232
description: "Override package version (PEP 440) for build.sh"
3333
required: false
@@ -39,10 +39,14 @@ on:
3939
examples:
4040
description: "Glob pattern(s) for examples to run (space-separated, relative to bindings/python/examples)."
4141
required: false
42-
default: "0[1-9]_*.py 1[0-9]_*.py 2[0-1]_*.py"
42+
default: "0[1-9]_*.py 1[0-9]_*.py 2[0-9]_*.py"
4343

4444
env:
45-
EXAMPLES: ${{ inputs.examples || '0[1-9]_*.py 1[0-9]_*.py 2[0-1]_*.py' }}
45+
EXAMPLES: ${{ inputs.examples || '0[1-9]_*.py 1[0-9]_*.py 2[0-9]_*.py' }}
46+
47+
# Note: Example 21 is intentionally excluded in CI.
48+
# It has shown repeated GitHub Actions instability across platforms despite
49+
# timeout increases, so the workflow skips it explicitly below.
4650

4751
permissions:
4852
contents: read
@@ -313,6 +317,14 @@ jobs:
313317
314318
# Set example-specific parameters and timeout
315319
case "$example" in
320+
"21_server_mode_http_access.py")
321+
# Example 21 is kept in the repo for local/manual use, but is
322+
# excluded from GitHub Actions because it is CI-unstable.
323+
echo "⏭️ SKIPPED: $example (excluded from GitHub Actions due to CI instability)" | tee -a $results_file
324+
skipped=$((skipped + 1))
325+
echo ""
326+
continue
327+
;;
316328
"04_csv_import_documents.py")
317329
example_args="--dataset movielens-small --export"
318330
example_name="$example (movielens-small dataset with export)"
@@ -422,12 +434,6 @@ jobs:
422434
timeout_duration=900
423435
example_jvm_args=""
424436
;;
425-
"21_server_mode_http_access.py")
426-
example_args=""
427-
example_name="$example (server mode and HTTP access workflow)"
428-
timeout_duration=900
429-
example_jvm_args=""
430-
;;
431437
*)
432438
example_args=""
433439
example_name="$example"

0 commit comments

Comments
 (0)