Skip to content

Commit 1405b56

Browse files
committed
ci: install pinned report renderer dependency
1 parent 5699ca2 commit 1405b56

6 files changed

Lines changed: 14 additions & 3 deletions

File tree

.github/workflows/validate.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,7 @@ jobs:
2525
python-version: "3.12"
2626
- name: Install dependencies
2727
run: npm ci
28+
- name: Install Python dependencies
29+
run: python -m pip install --disable-pip-version-check -r skills/omv-report/scripts/requirements.txt
2830
- name: Validate project
2931
run: npm run release:check

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Research state stays in a private `.omv/` workspace. The project is designed for
2626

2727
## Quick Start
2828

29-
**Requirements:** [Codex](https://developers.openai.com/codex/) or [Claude Code](https://docs.anthropic.com/en/docs/claude-code), Node.js 22 or later, and Python 3 for bundled Skill helpers. Windows, Linux, and macOS are supported; on Windows, use a modern Windows Terminal or PowerShell for the Ink workspace.
29+
**Requirements:** [Codex](https://developers.openai.com/codex/) or [Claude Code](https://docs.anthropic.com/en/docs/claude-code), Node.js 22 or later, and Python 3 for bundled Skill helpers. The deterministic report renderer additionally uses its pinned PyYAML dependency. Windows, Linux, and macOS are supported; on Windows, use a modern Windows Terminal or PowerShell for the Ink workspace.
3030

3131
Install the CLI and add the skills to Codex:
3232

README.zh-CN.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
## 快速开始
2828

29-
**环境要求:** [Codex](https://developers.openai.com/codex/)[Claude Code](https://docs.anthropic.com/en/docs/claude-code)、Node.js 22 或更高版本,以及供内置 Skill 辅助脚本使用的 Python 3。支持 Windows、Linux 和 macOS;Windows 建议使用新版 Windows Terminal 或 PowerShell 运行 Ink 工作台。
29+
**环境要求:** [Codex](https://developers.openai.com/codex/)[Claude Code](https://docs.anthropic.com/en/docs/claude-code)、Node.js 22 或更高版本,以及供内置 Skill 辅助脚本使用的 Python 3。确定性报告渲染器还使用自身固定版本的 PyYAML 依赖。支持 Windows、Linux 和 macOS;Windows 建议使用新版 Windows Terminal 或 PowerShell 运行 Ink 工作台。
3030

3131
全局安装 CLI,并把 Skills 装入 Codex:
3232

skills/omv-report/SKILL.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@ Use the validation result to choose output mode:
8585

8686
For confirmed findings with submission score ≥ 75, run the deterministic renderer first to get a pre-filled skeleton. Resolve `scripts/render_template.py` relative to this installed `SKILL.md`; do not assume one global install directory.
8787

88+
The renderer requires the pinned Python dependency in `scripts/requirements.txt`. Install it once with `python3 -m pip install -r <installed-skill-dir>/scripts/requirements.txt` on macOS/Linux or `py -3 -m pip install -r <installed-skill-dir>\scripts\requirements.txt` on Windows.
89+
8890
macOS/Linux:
8991

9092
```bash

skills/omv-report/scripts/render_template.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,13 @@
2424
from pathlib import Path
2525
from typing import Any
2626

27-
import yaml
27+
try:
28+
import yaml
29+
except ModuleNotFoundError:
30+
raise SystemExit(
31+
"PyYAML is required by the deterministic report renderer. "
32+
"Install it with: python -m pip install -r scripts/requirements.txt"
33+
)
2834

2935

3036
GHSA_ECOSYSTEM: dict[str, str] = {
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
PyYAML==6.0.3

0 commit comments

Comments
 (0)