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.
test(sync_flow): run the live GitHub dry-run tests only when enabled
Agrici Daniel9ae2a3f836a8
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.ymlindex e1f2f56..77e60bd 100644--- a/.github/workflows/ci.yml+++ b/.github/workflows/ci.yml@@ -53,6 +53,9 @@ jobs:run: pip install -r requirements.txt pytest- name: Run pytest+ env:+ CLAUDE_SEO_NETWORK_TESTS: "1"+ GH_TOKEN: ${{ github.token }}run: pytest tests/ -vsecret-scan:@@ -107,4 +110,7 @@ jobs:# The whole suite, not a hand-picked subset. The tests that assert# POSIX mode bits (the executable bit, chmod 0o600/0o644) skip on# Windows via os.name; everything else must hold on every platform.+ env:+ CLAUDE_SEO_NETWORK_TESTS: "1"+ GH_TOKEN: ${{ github.token }}run: pytest tests/ -vdiff --git a/tests/test_sync_flow.py b/tests/test_sync_flow.pyindex 3f4f77f..7e59e5a 100644--- a/tests/test_sync_flow.py+++ b/tests/test_sync_flow.py@@ -2,15 +2,27 @@import importlib.util as _iluimport json+import osimport subprocessimport sysfrom pathlib import Path+import pytest+REPO_ROOT = Path(__file__).parents[1]SCRIPT = REPO_ROOT / "scripts" / "sync_flow.py"REF_DIR = REPO_ROOT / "skills" / "seo-flow" / "references"+# The dry run calls the live GitHub API. Unauthenticated parallel runs hit 429+# and 403 rate limits, so these tests only run when explicitly enabled; CI sets+# the flag together with GH_TOKEN.+network = pytest.mark.skipif(+ not os.environ.get("CLAUDE_SEO_NETWORK_TESTS"),+ reason="live GitHub API call; set CLAUDE_SEO_NETWORK_TESTS=1 to run",+)++@networkdef test_dry_run_exits_zero():result = subprocess.run([sys.executable, str(SCRIPT), "--dry-run"],@@ -19,6 +31,7 @@ def test_dry_run_exits_zero():assert result.returncode == 0, f"Dry run failed:\n{result.stderr}"+@networkdef test_dry_run_produces_valid_json():result = subprocess.run([sys.executable, str(SCRIPT), "--dry-run"],@@ -31,6 +44,7 @@ def test_dry_run_produces_valid_json():assert "unchanged" in data, "JSON missing 'unchanged' key"+@networkdef test_dry_run_does_not_write_files():files_before = set(REF_DIR.rglob("*.md"))subprocess.run(