Skip to content

Commit b073523

Browse files
docs: GPT 审查处置——CI 锁版本 + 文档命令/报告方式修正
- #18: CONTRIBUTING 测试命令加 PowerShell 版(Git Bash + PowerShell 双命令) - #20: requirements-ci.txt 锁 numpy 2.4.4/pytest 8.3.3 + ci.yml 引用 - #22: SUPPORT 去未启用 Discussions, 引导 Issue - #23: SECURITY 漏洞报告改 Security Advisory 私密表单 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent 74977a2 commit b073523

5 files changed

Lines changed: 12 additions & 5 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
python-version: '3.12'
1616

1717
- name: Install dependencies
18-
run: pip install numpy torch pytest
18+
run: pip install -r requirements-ci.txt
1919

2020
- name: Run pytest (CPU arms + contract; CUDA arms auto-skip)
2121
run: python -m pytest tests/ -q

CONTRIBUTING.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ factor-cuda 是 **CUDA 因子截面分析加速**工具——GPU 加速量化因
1111

1212
- 构建/运行环境支持矩阵见 `docs/support_matrix.json`(单一真源:CUDA 13.3 / VS2026 MSVC 19.51 / Python 3.12.7 / compute capability 8.9)
1313
- 构建:`pwsh -NoProfile -File _build_poc3.ps1 <target>`(CMake + Ninja)
14-
- 测试:`PYTHONIOENCODING=utf-8 python -m pytest tests/ -q`(期望 126 passed / 3 skipped)
14+
- 测试(Git Bash):`PYTHONIOENCODING=utf-8 python -m pytest tests/ -q`
15+
- 测试(PowerShell):`$env:PYTHONIOENCODING='utf-8'; python -m pytest tests/ -q`
16+
(本地 GPU 期望 126 passed / 3 skipped;GitHub Actions 无 GPU 跑 CPU/契约臂 75 passed)
1517
- CUDA selfcheck:`build\poc3_*_selfcheck.exe`(每算子 ALL PASS)
1618

1719
## 代码约定(重要)

SECURITY.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
factor-cuda 是一个开源量化工具。如发现安全漏洞(如任意代码执行、敏感信息泄漏、数据完整性破坏),请**私有报告**(勿公开 Issue):
66

7-
- 通过 GitHub 私有 Issue / Security Advisory:https://github.com/redamancy231-create/factor-cuda/security
8-
- 或在 Issue 中标记 `[SECURITY]`(如无法私有提交
7+
- 通过 GitHub Security Advisory 私密提交https://github.com/redamancy231-create/factor-cuda/security/advisories/new
8+
- 或发送邮件至项目维护者(在 GitHub 仓库 About 页可见的联系方式
99

1010
报告时请提供:
1111
1. 漏洞描述(影响/危害)

SUPPORT.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
- **文档优先**:先读 `README.md`(三语:简体/English/繁體)、`docs/support_matrix.json`(构建环境)、`CLAUDE.md`(操作语义契约)、`CONTRIBUTING.md`(贡献)
66
- **Bug 报告**:用 `.github/ISSUE_TEMPLATE/bug_report.md` 模板开 Issue
77
- **功能请求**:用 `.github/ISSUE_TEMPLATE/feature_request.md`
8-
- **讨论**:GitHub Discussions / Issue 评论区
8+
- **讨论**:GitHub Issue(交流/问题咨询请在 Issue 评论区
99

1010
## 不提供
1111

requirements-ci.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# GitHub Actions CI dependencies (locked for reproducible runs).
2+
# numpy pinned to the frozen oracle version (corr_oracle_v1.py fingerprint).
3+
numpy==2.4.4
4+
pytest==8.3.3
5+
torch>=2.0

0 commit comments

Comments
 (0)