Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,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.16.2` | Exact `worai` version installed by the action. |
| `worai_version` | No | `6.17.6` | 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`. |
Expand Down Expand Up @@ -164,7 +164,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.16.2`.
- Action `v6` defaults to installing `worai` `6.17.6`.

## Development

Expand Down
54 changes: 27 additions & 27 deletions action.yml
Original file line number Diff line number Diff line change
@@ -1,57 +1,57 @@
name: 'graph-sync'
description: 'Graph Sync using worai by WordLift'
author: 'WordLift'
name: "graph-sync"
description: "Graph Sync using worai by WordLift"
author: "WordLift"
branding:
icon: 'upload-cloud'
color: 'blue'
icon: "upload-cloud"
color: "blue"

inputs:
profile:
description: 'Profile name defined in worai config'
description: "Profile name defined in worai config"
required: true
config_path:
description: 'Optional path passed as --config to worai'
description: "Optional path passed as --config to worai"
required: false
default: ''
default: ""
debug:
description: 'Enable --debug (true/false)'
description: "Enable --debug (true/false)"
required: false
default: 'false'
default: "false"
log_level:
description: 'Optional WORAI_LOG_LEVEL value (debug/info/warning/error)'
description: "Optional WORAI_LOG_LEVEL value (debug/info/warning/error)"
required: false
default: 'warning'
default: "warning"
working_directory:
description: 'Directory where worai should run'
description: "Directory where worai should run"
required: false
default: '.'
default: "."
worai_version:
description: 'Pinned worai version to install'
description: "Pinned worai version to install"
required: false
default: '6.16.2'
default: "6.17.6"
install_playwright:
description: 'Install Playwright Python package and browser binaries (true/false)'
description: "Install Playwright Python package and browser binaries (true/false)"
required: false
default: 'true'
default: "true"
playwright_version:
description: 'Pinned Playwright Python package version to install'
description: "Pinned Playwright Python package version to install"
required: false
default: '1.58.0'
default: "1.58.0"
playwright_browser:
description: 'Playwright browser to install'
description: "Playwright browser to install"
required: false
default: 'chromium'
default: "chromium"
cache_enabled:
description: 'Enable dependency cache for pip and Playwright browser binaries (true/false)'
description: "Enable dependency cache for pip and Playwright browser binaries (true/false)"
required: false
default: 'true'
default: "true"
cache_key_suffix:
description: 'Optional cache key suffix; when empty, key is derived from worai/playwright versions and browser'
description: "Optional cache key suffix; when empty, key is derived from worai/playwright versions and browser"
required: false
default: ''
default: ""

runs:
using: 'composite'
using: "composite"
steps:
- name: Resolve cache settings
id: resolve_cache
Expand Down
2 changes: 1 addition & 1 deletion docs/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,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.16.2`).
- The action installs a pinned `worai` version via input `worai_version` (default `6.17.6`).
- The action installs Playwright by default via:
- Python package input `playwright_version` (default `1.58.0`)
- Browser input `playwright_browser` (default `chromium`)
Expand Down
2 changes: 1 addition & 1 deletion specs/action-behavior.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
- `debug` (optional, default `false`)
- `log_level` (optional, default `warning`)
- `working_directory` (optional, default `.`)
- `worai_version` (optional, default `6.16.2`)
- `worai_version` (optional, default `6.17.6`)
- `install_playwright` (optional, default `true`)
- `playwright_version` (optional, default `1.58.0`)
- `playwright_browser` (optional, default `chromium`)
Expand Down
6 changes: 3 additions & 3 deletions tests/install-worai.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,17 +56,17 @@ assert_eq "1" "$code" "version with whitespace should fail"

# Case 3: install with python3
rm -f "$TMP_DIR/python_calls.txt"
code=$(run_case install_python3 "${BASE_ENV[@]}" INPUT_WORAI_VERSION="6.16.2" "$SCRIPT")
code=$(run_case install_python3 "${BASE_ENV[@]}" INPUT_WORAI_VERSION="6.17.6" "$SCRIPT")
assert_eq "0" "$code" "python3 install should succeed"
first_call=$(sed -n '1p' "$TMP_DIR/python_calls.txt")
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.16.2" "$second_call" "second command installs pinned worai"
assert_eq "-m pip install worai==6.17.6" "$second_call" "second command installs pinned worai"

# Case 4: 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.16.2" /bin/bash "$SCRIPT")
code=$(run_case no_python /usr/bin/env PATH="$EMPTY_BIN" INPUT_WORAI_VERSION="6.17.6" /bin/bash "$SCRIPT")
assert_eq "1" "$code" "missing python should fail"

if [[ "$fail_count" -ne 0 ]]; then
Expand Down