-
Notifications
You must be signed in to change notification settings - Fork 1
68 lines (53 loc) · 2.53 KB
/
validate.yml
File metadata and controls
68 lines (53 loc) · 2.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: Validate Auto Research
on:
pull_request:
branches: [main]
push:
branches: [main]
jobs:
validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install test dependencies
run: python -m pip install --upgrade pip pytest
- name: Check version consistency
run: |
python - <<'PY'
import json
from pathlib import Path
version = Path("VERSION").read_text(encoding="utf-8").strip()
readme = Path("README.md").read_text(encoding="utf-8")
claude_marketplace = json.loads(Path(".claude-plugin/marketplace.json").read_text(encoding="utf-8"))
claude_plugin = json.loads(Path("plugins/autoresearch/.claude-plugin/plugin.json").read_text(encoding="utf-8"))
codex_plugin = json.loads(Path("plugins/codex-autoresearch/.codex-plugin/plugin.json").read_text(encoding="utf-8"))
expected = {
"VERSION": version,
".claude-plugin/marketplace.json": claude_marketplace["version"],
"plugins/autoresearch/.claude-plugin/plugin.json": claude_plugin["version"],
"plugins/codex-autoresearch/.codex-plugin/plugin.json": codex_plugin["version"],
}
mismatches = [f"{path}={value}" for path, value in expected.items() if value != version]
if f"**v{version}**" not in readme:
mismatches.append("README.md version banner mismatch")
if mismatches:
raise SystemExit("Version mismatch: " + ", ".join(mismatches))
PY
- name: Validate root-to-plugin sync
run: python scripts/sync_plugin_payload.py --repo . --check
- name: Validate Codex plugin payload
run: python scripts/check_plugin_distribution.py --repo .
- name: Run packaging tests
run: pytest -q tests/test_plugin_distribution.py tests/test_results_compatibility.py
- name: Check for absolute local paths in docs
run: |
! rg -n "/Users/|/home/" README.md CHANGELOG.md CONTRIBUTING.md SECURITY.md wiki docs .claude-plugin plugins
- name: Check for stale public positioning
run: |
! rg -n "Claude Code only|Claude-only" README.md CHANGELOG.md CONTRIBUTING.md SECURITY.md wiki docs .claude-plugin plugins
- name: Check shared content for Claude-local paths
run: |
! rg -n "\.claude/" SKILL.md agents references scripts tests .agents plugins/codex-autoresearch