Rebrand as Auto Research and add Codex plugin support #14
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |