fixed # 修复工作流BUG

This commit is contained in:
2026-10-23 10:20:55 +08:00
parent 71ef1e2d30
commit 79ae03bf95
3 changed files with 14 additions and 0 deletions
+1
View File
@@ -33,6 +33,7 @@ jobs:
- run: >-
python -m pip install "Pillow>=10.4,<13"
setuptools wheel "PyYAML>=6,<7" build
-r integrations/astrbot/requirements.txt
- run: python scripts/ci_font.py
- run: python scripts/check_workflows.py
- run: python scripts/verify_foundation.py
+1
View File
@@ -42,6 +42,7 @@ jobs:
run: >-
python -m pip install "Pillow==$PILLOW_VERSION"
setuptools wheel "PyYAML>=6,<7"
-r integrations/astrbot/requirements.txt
- run: python scripts/ci_font.py
- run: python scripts/check_workflows.py
- run: python scripts/verify_foundation.py
+12
View File
@@ -49,6 +49,18 @@ def main():
nonebot = yaml.load((
root / ".github/workflows/nonebot-preview.yml"
).read_text(encoding="utf-8"), Loader=yaml.BaseLoader)
for workflow in (source, nonebot):
install_commands = [
step.get("run", "").split()
for step in workflow["jobs"]["test"]["steps"]
]
if not any(
any(tokens[index:index + 2] == [
"-r", "integrations/astrbot/requirements.txt",
] for index in range(len(tokens) - 1))
for tokens in install_commands
):
raise ValueError("Full test suite requires AstrBot dependencies")
if nonebot["permissions"] != {"contents": "read"}:
raise ValueError("NoneBot source permissions differ")
trigger = nonebot["on"]