diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 56cdfa6a74..143e723adf 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -164,6 +164,7 @@ jobs: - "packages/cli/src/media-use/**" - "scripts/check-media-use-copy-parity.test.mjs" - "scripts/check-skill-import-boundaries.test.mjs" + - "scripts/check-skill-python-encoding.test.mjs" - "scripts/generate-skill-module-copies.mjs" - "skills/**" - ".claude/skills/**" @@ -763,7 +764,7 @@ jobs: echo "::error::No skills/**/*.test.mjs files found. Did the layout change?" exit 1 fi - SKILLS_TESTS+=(scripts/check-media-use-copy-parity.test.mjs scripts/creator-editing-capabilities.test.mjs) + SKILLS_TESTS+=(scripts/check-media-use-copy-parity.test.mjs scripts/check-skill-python-encoding.test.mjs scripts/creator-editing-capabilities.test.mjs) printf 'Running %d skills test file(s):\n' "${#SKILLS_TESTS[@]}" printf ' * %s\n' "${SKILLS_TESTS[@]}" node --import ./packages/cli/scripts/test-home.mjs --test "${SKILLS_TESTS[@]}" diff --git a/skills/python-encoding.test.mjs b/scripts/check-skill-python-encoding.test.mjs similarity index 98% rename from skills/python-encoding.test.mjs rename to scripts/check-skill-python-encoding.test.mjs index 5564fba8da..baf5e428c4 100644 --- a/skills/python-encoding.test.mjs +++ b/scripts/check-skill-python-encoding.test.mjs @@ -16,7 +16,7 @@ import { dirname, join, relative } from "node:path"; import { fileURLToPath } from "node:url"; import { describe, it } from "node:test"; -const SKILLS_DIR = dirname(fileURLToPath(import.meta.url)); +const SKILLS_DIR = join(dirname(fileURLToPath(import.meta.url)), "..", "skills"); function pythonScripts(dir) { const found = []; diff --git a/scripts/test-reachability.json b/scripts/test-reachability.json index 8b1a8b59cc..37792f111f 100644 --- a/scripts/test-reachability.json +++ b/scripts/test-reachability.json @@ -22,16 +22,18 @@ "packages/producer/**" ], "scripts/generate-catalog-payloads.test.ts": ["registry/**", "scripts/**"], - "scripts/check-skill-import-boundaries.test.mjs": ["skills/**"] + "scripts/check-skill-import-boundaries.test.mjs": ["skills/**"], + "scripts/check-skill-python-encoding.test.mjs": ["skills/**/*.py"] }, "runners": [ { "cwd": ".", - "command": "set -euo pipefail\nmapfile -t SKILLS_TESTS < <(find skills packages/cli/src/media-use -type f -name \"*.test.mjs\" | sort)\nif [ \"${#SKILLS_TESTS[@]}\" -eq 0 ]; then\necho \"::error::No skills/**/*.test.mjs files found. Did the layout change?\"\nexit 1\nfi\nSKILLS_TESTS+=(scripts/check-media-use-copy-parity.test.mjs scripts/creator-editing-capabilities.test.mjs)\nprintf 'Running %d skills test file(s):\\n' \"${#SKILLS_TESTS[@]}\"\nprintf ' * %s\\n' \"${SKILLS_TESTS[@]}\"\nnode --import ./packages/cli/scripts/test-home.mjs --test \"${SKILLS_TESTS[@]}\"", + "command": "set -euo pipefail\nmapfile -t SKILLS_TESTS < <(find skills packages/cli/src/media-use -type f -name \"*.test.mjs\" | sort)\nif [ \"${#SKILLS_TESTS[@]}\" -eq 0 ]; then\necho \"::error::No skills/**/*.test.mjs files found. Did the layout change?\"\nexit 1\nfi\nSKILLS_TESTS+=(scripts/check-media-use-copy-parity.test.mjs scripts/check-skill-python-encoding.test.mjs scripts/creator-editing-capabilities.test.mjs)\nprintf 'Running %d skills test file(s):\\n' \"${#SKILLS_TESTS[@]}\"\nprintf ' * %s\\n' \"${SKILLS_TESTS[@]}\"\nnode --import ./packages/cli/scripts/test-home.mjs --test \"${SKILLS_TESTS[@]}\"", "tests": [ "skills/**/*.test.mjs", "packages/cli/src/media-use/**/*.test.mjs", "scripts/check-media-use-copy-parity.test.mjs", + "scripts/check-skill-python-encoding.test.mjs", "scripts/creator-editing-capabilities.test.mjs" ], "sources": {},