Skip to content

Universal SEO skill for Claude Code. 26 sub-skills + 19 sub-agents covering technical SEO, E-E-A-T, schema, GEO/AEO, agent readiness (Lighthouse Agentic Browsing, WebMCP, llms.txt), backlinks, local SEO, e-commerce, international SEO, Google APIs, and PDF/Excel reporting. 9 optional extensions for live SEO data.

ci: make the hosted-layout tests and installer smoke run on Windows pull requests

Agrici Daniel1d2299dd8d70
diff --git a/.github/workflows/windows-smoke.yml b/.github/workflows/windows-smoke.yml
index 952f3ec..369efe5 100644
--- a/.github/workflows/windows-smoke.yml
+++ b/.github/workflows/windows-smoke.yml
@@ -37,11 +37,15 @@ jobs:
- id: ref
name: Validate released source ref
env:
- TARGET_REF: ${{ inputs.target_ref || 'v2.2.6' }}
+ # Manual runs install a released tag or main. Pull requests from this
+ # repository install their own head branch, so the installer under
+ # test is the one in the PR rather than the previous release.
+ TARGET_REF: ${{ inputs.target_ref || github.head_ref || 'v2.2.6' }}
+ EVENT_NAME: ${{ github.event_name }}
shell: bash
run: |
set -euo pipefail
- if [[ ! "$TARGET_REF" =~ ^(main|v[0-9]+\.[0-9]+\.[0-9]+)$ ]]; then
+ if [[ "$EVENT_NAME" == "workflow_dispatch" && ! "$TARGET_REF" =~ ^(main|v[0-9]+\.[0-9]+\.[0-9]+)$ ]]; then
echo "::error::target_ref must be main or a stable vX.Y.Z tag."
exit 1
fi
diff --git a/tests/test_hosted_plugin_layout.py b/tests/test_hosted_plugin_layout.py
index 11dfb7c..07471e6 100644
--- a/tests/test_hosted_plugin_layout.py
+++ b/tests/test_hosted_plugin_layout.py
@@ -15,11 +15,13 @@ installers rewrite that exact token to the absolute installed path.
from __future__ import annotations
+import os
import re
import subprocess
-import sys
from pathlib import Path
+import pytest
+
ROOT = Path(__file__).resolve().parents[1]
LAUNCHER = ROOT / "scripts" / "claude-seo"
CANONICAL = '"${CLAUDE_PLUGIN_ROOT}/scripts/claude-seo"'
@@ -67,7 +69,9 @@ def test_no_top_level_bin_directory() -> None:
def test_launcher_lives_in_scripts_and_is_executable() -> None:
assert LAUNCHER.is_file()
- assert LAUNCHER.stat().st_mode & 0o111, "the launcher must stay executable"
+ if os.name == "posix":
+ # The executable bit is a POSIX mode bit; Windows checkouts have none.
+ assert LAUNCHER.stat().st_mode & 0o111, "the launcher must stay executable"
text = LAUNCHER.read_text(encoding="utf-8")
assert 'runtime="${launcher_dir}/runtime.py"' in text, (
"the launcher must resolve runtime.py as a sibling"
@@ -112,15 +116,13 @@ def test_installers_reference_the_scripts_launcher() -> None:
assert "bin/claude-seo" not in windows
+ os.name != "posix",
+ reason="the launcher is a bash script; Windows installs use install.ps1 and py -3, "
+ "which the manual installer smoke workflow exercises",
+)
def test_launcher_runs_without_network_or_managed_runtime() -> None:
"""``doctor --help`` is handled by argparse before any venv is touched."""
- if sys.platform == "win32":
- import shutil
-
- if shutil.which("bash") is None:
- import pytest
-
- pytest.skip("bash is unavailable on this runner")
result = subprocess.run(
["bash", str(LAUNCHER), "doctor", "--help"],
capture_output=True,