Skip to content
Navigation Menu
Sign in
Products
Platform
GitHub
Repository hosting, code review, and collaboration
Copilot
AI coding agent for tasks, projects, and automated work
Build & Ship
Actions
CI/CD and automation
Code Quality
Quality analysis, fixes, and enforcement
Codespaces
Cloud development environments
Secure
Code Security
Vulnerability detection and remediation
Secret Protection
Secret scanning and leak prevention
All Features
Developers
Learn
Documentation
Training
Certifications
Build
Build with Copilot
Customize Copilot
Integrations
Explore
Trending repos
GitHub Sponsors
Developer articles
Changelog
Changelog
Your source for the latest features, improvements, and fixes across GitHub products, all in one place.
Businesses
By Stage
Enterprises
Team
Startups
Nonprofits
By Industry
Healthcare
Financial services
Manufacturing
Government
See all industries
Evaluate GitHub
Why GitHub
Customer Stories
Business insights
Trust Center
Add-ons
GitHub Advanced Security
Enterprise-grade code security
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Resources
Learn & Connect
Documentation
Resource center
Blog
Events & webinars
Community Forum
Customer Stories
Integrations
Support
Customer support
Training
GitHub Status
Company
About
Partners
Changelog
GitHub Universe
GitHub Universe
The event for developers, by developers — talks, workshops, and what’s next for GitHub.
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
heimixieb
dsh-memory
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
More
items
Files
Expand file tree
main
Breadcrumbs
dsh-memory
/
.github
/
workflows
/
python-tests.yml
Copy path
View runs
Blame
More file actions
Blame
More file actions
Latest commit
History
History
History
36 lines (34 loc) · 1.77 KB
main
Breadcrumbs
dsh-memory
/
.github
/
workflows
/
python-tests.yml
Copy path
Top
File metadata and controls
Code
Blame
36 lines (34 loc) · 1.77 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
name: python-tests
# Python 侧全量套件接入 CI(2026-09-20 v15-2 修复)。
#
# 为什么必须有:此前 6 个 workflow **无一**调用 `scripts/run_tests.py`,147 目标的
# Python 套件完全在 CI 之外——于是 `md_cg/test_datapath_root`(一条只在 Windows 成立的
# 断言)从入库那刻起就在 POSIX 上红着,而**没有任何流水线会拦下它**:
# 「干净克隆上全绿」这一对外承诺因此长期不成立且无人可见。红基线看得见,才有自愈闭环。
#
# 刻意**不加 paths 过滤**:套件覆盖面横跨 md_cg/、hive/、compiler/、swarm/、scripts/,
# 任何一处改动都可能让它变红;paths 白名单一旦漏项就会重现「改动不入门禁」的盲区
# (20260915 cogmap-check 已有前例)。全量跑换「红基线必然可见」。
#
# CI 与部署侧的差异是**设计内**的:无真源数据面的目标由 `run_tests.py` 按依赖检查
# SKIP(如实标记跳过理由,不是假绿)。
on:
workflow_dispatch:
push:
pull_request:
jobs:
run-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.11"
# 套件里 scripts/test_injection_chain.py 经 verify_discipline → render_discipline
# 依赖 pyyaml(discipline-check job 已装,python-tests job 此前漏装 → 该用例
# 在这里恒红 `ModuleNotFoundError: No module named 'yaml'`,属依赖面不一致,
# 不是被测缺陷)。两个 job 的依赖面保持同款。
- name: 依赖(scripts/test_injection_chain 需要 pyyaml)
run: python -m pip install pyyaml
- name: Python 全量套件(scripts/run_tests.py)
run: python scripts/run_tests.py --jobs 4
You can’t perform that action at this time.