mirror of
https://github.com/Shu-Ying/main_plugin_farm.git
synced 2026-10-29 13:40:00 +08:00
fixed # 修复工作流BUG
This commit is contained in:
@@ -33,6 +33,7 @@ jobs:
|
|||||||
- run: >-
|
- run: >-
|
||||||
python -m pip install "Pillow>=10.4,<13"
|
python -m pip install "Pillow>=10.4,<13"
|
||||||
setuptools wheel "PyYAML>=6,<7" build
|
setuptools wheel "PyYAML>=6,<7" build
|
||||||
|
-r integrations/astrbot/requirements.txt
|
||||||
- run: python scripts/ci_font.py
|
- run: python scripts/ci_font.py
|
||||||
- run: python scripts/check_workflows.py
|
- run: python scripts/check_workflows.py
|
||||||
- run: python scripts/verify_foundation.py
|
- run: python scripts/verify_foundation.py
|
||||||
|
|||||||
@@ -42,6 +42,7 @@ jobs:
|
|||||||
run: >-
|
run: >-
|
||||||
python -m pip install "Pillow==$PILLOW_VERSION"
|
python -m pip install "Pillow==$PILLOW_VERSION"
|
||||||
setuptools wheel "PyYAML>=6,<7"
|
setuptools wheel "PyYAML>=6,<7"
|
||||||
|
-r integrations/astrbot/requirements.txt
|
||||||
- run: python scripts/ci_font.py
|
- run: python scripts/ci_font.py
|
||||||
- run: python scripts/check_workflows.py
|
- run: python scripts/check_workflows.py
|
||||||
- run: python scripts/verify_foundation.py
|
- run: python scripts/verify_foundation.py
|
||||||
|
|||||||
@@ -49,6 +49,18 @@ def main():
|
|||||||
nonebot = yaml.load((
|
nonebot = yaml.load((
|
||||||
root / ".github/workflows/nonebot-preview.yml"
|
root / ".github/workflows/nonebot-preview.yml"
|
||||||
).read_text(encoding="utf-8"), Loader=yaml.BaseLoader)
|
).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"}:
|
if nonebot["permissions"] != {"contents": "read"}:
|
||||||
raise ValueError("NoneBot source permissions differ")
|
raise ValueError("NoneBot source permissions differ")
|
||||||
trigger = nonebot["on"]
|
trigger = nonebot["on"]
|
||||||
|
|||||||
Reference in New Issue
Block a user