From 943460965b6686db1343c15ce636f0fc484ccad1 Mon Sep 17 00:00:00 2001 From: David Riccitelli Date: Tue, 11 Aug 2026 16:36:07 +0300 Subject: [PATCH] chore: bump default worai to 6.20.10 --- README.md | 4 ++-- action.yml | 2 +- docs/usage.md | 2 +- specs/action-behavior.md | 2 +- tests/install-worai.sh | 15 +++++++++++---- 5 files changed, 16 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 65e7767..e3482f4 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ GitHub Action to install `worai`, install Python Playwright + Chromium, and run: | `debug` | No | `false` | When truthy (`true/1/yes`), appends `--debug`. | | `log_level` | No | `warning` | Exports `WORAI_LOG_LEVEL` as `debug`, `info`, `warning`, or `error`. | | `working_directory` | No | `.` | Directory where `worai` runs. | -| `worai_version` | No | `6.20.9` | Exact `worai` version installed by the action. | +| `worai_version` | No | `6.20.10` | Exact `worai` version installed by the action. | | `install_playwright` | No | `true` | Installs Playwright Python package and browser binaries when truthy (`true/1/yes`). | | `playwright_version` | No | `1.58.0` | Exact Playwright Python package version installed when Playwright install is enabled. | | `playwright_browser` | No | `chromium` | Browser passed to `python -m playwright install`. | @@ -206,7 +206,7 @@ export WORAI_PROFILE="acme_sitemap" ## Migration from `@v1` - Replace `uses: wordlift/graph-sync@v1` with `uses: wordlift/graph-sync@v6`. -- Action `v6` defaults to installing `worai` `6.20.9`. +- Action `v6` defaults to installing `worai` `6.20.10`. ## Development diff --git a/action.yml b/action.yml index 1906415..5442135 100644 --- a/action.yml +++ b/action.yml @@ -28,7 +28,7 @@ inputs: worai_version: description: "Pinned worai version to install" required: false - default: "6.20.9" + default: "6.20.10" install_playwright: description: "Install Playwright Python package and browser binaries (true/false)" required: false diff --git a/docs/usage.md b/docs/usage.md index d329679..2fcd940 100644 --- a/docs/usage.md +++ b/docs/usage.md @@ -85,7 +85,7 @@ When `config_path` is not provided, `worai` discovers config in this order: ## Installer Behavior -- The action installs a pinned `worai` version via input `worai_version` (default `6.20.9`). +- The action installs a pinned `worai` version via input `worai_version` (default `6.20.10`). - The action installs Playwright by default via: - Python package input `playwright_version` (default `1.58.0`) - Browser input `playwright_browser` (default `chromium`) diff --git a/specs/action-behavior.md b/specs/action-behavior.md index fa6f486..e3be900 100644 --- a/specs/action-behavior.md +++ b/specs/action-behavior.md @@ -7,7 +7,7 @@ - `debug` (optional, default `false`) - `log_level` (optional, default `warning`) - `working_directory` (optional, default `.`) -- `worai_version` (optional, default `6.20.9`) +- `worai_version` (optional, default `6.20.10`) - `output_dir` (optional, default empty) - `install_playwright` (optional, default `true`) - `playwright_version` (optional, default `1.58.0`) diff --git a/tests/install-worai.sh b/tests/install-worai.sh index 7de6131..4d3f133 100755 --- a/tests/install-worai.sh +++ b/tests/install-worai.sh @@ -46,15 +46,22 @@ chmod +x "$FAKE_BIN/python3" BASE_ENV=(env PATH="$FAKE_BIN:/usr/bin:/bin" PYTHON_CALLS_FILE="$TMP_DIR/python_calls.txt") -# Case 1: missing version +# Case 1: action metadata pins the supported default +default_version=$(awk ' + $1 == "worai_version:" { in_input = 1; next } + in_input && $1 == "default:" { gsub(/"/, "", $2); print $2; exit } +' "$ROOT_DIR/action.yml") +assert_eq "6.20.10" "$default_version" "action default should pin the current worai version" + +# Case 2: missing version code=$(run_case missing_version "${BASE_ENV[@]}" "$SCRIPT") assert_eq "1" "$code" "missing version should fail" -# Case 2: whitespace in version +# Case 3: whitespace in version code=$(run_case bad_version "${BASE_ENV[@]}" INPUT_WORAI_VERSION="1.2 3" "$SCRIPT") assert_eq "1" "$code" "version with whitespace should fail" -# Case 3: install with python3 +# Case 4: install with python3 rm -f "$TMP_DIR/python_calls.txt" code=$(run_case install_python3 "${BASE_ENV[@]}" INPUT_WORAI_VERSION="6.18.1" "$SCRIPT") assert_eq "0" "$code" "python3 install should succeed" @@ -63,7 +70,7 @@ second_call=$(sed -n '2p' "$TMP_DIR/python_calls.txt") assert_eq "-m pip install --upgrade pip" "$first_call" "first command upgrades pip" assert_eq "-m pip install worai==6.18.1" "$second_call" "second command installs pinned worai" -# Case 4: missing python interpreters +# Case 5: missing python interpreters EMPTY_BIN="$TMP_DIR/empty-bin" mkdir -p "$EMPTY_BIN" code=$(run_case no_python /usr/bin/env PATH="$EMPTY_BIN" INPUT_WORAI_VERSION="6.18.1" /bin/bash "$SCRIPT")