Skip to content

Commit 9655bb5

Browse files
[CI] remove comment
1 parent 3097d5e commit 9655bb5

2 files changed

Lines changed: 1 addition & 9 deletions

File tree

.github/scripts/install_deps.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,15 @@ def normalize_pkg_spec(s: str) -> str:
1717
if not s:
1818
return s
1919

20-
# 已是 git 形式,直接用
2120
if s.startswith("git+"):
2221
return s
2322

24-
# 裸 github URL
2523
if s.startswith("https://github.com/"):
2624
s = s.rstrip("/")
2725
if not s.endswith(".git"):
2826
s += ".git"
2927
return "git+" + s
3028

31-
# 其它(普通 pip 包)
3229
return s
3330

3431

@@ -37,26 +34,21 @@ def collect_pkgs(test_path: Path, deps: dict):
3734

3835
common_pkgs = set(deps.get("common") or [])
3936

40-
# 文件级依赖(tests: 下)
4137
specific_pkgs.update(deps.get("tests", {}).get(test_path.name) or [])
4238

43-
# 目录级依赖(tests/...)
4439
test_path_str = test_path.as_posix()
4540
for key, value in deps.items():
4641
if not (isinstance(key, str) and key.startswith("tests/")):
4742
continue
4843
if not test_path_str.startswith(key + "/"):
4944
continue
5045

51-
# 1) 目录直接是列表:tests/models: [jieba, ...]
5246
if isinstance(value, list):
5347
specific_pkgs.update(value)
5448

55-
# 2) 目录是 dict:tests/models: { test_x.py: [..], ... }
5649
elif isinstance(value, dict):
5750
specific_pkgs.update(value.get(test_path.name) or [])
5851

59-
# 3) 其它类型忽略/报错都行,这里选择忽略
6052
else:
6153
pass
6254

.github/workflows/unit_tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ jobs:
6262
- list-test-files
6363
runs-on: [ self-hosted, xeon5 ]
6464
container:
65-
image: ${{ needs.check-vm.outputs.ip }}:5000/nvidia/cuda:${{ env.CUDA_VERSION }}-ubuntu22.04_0206
65+
image: ${{ needs.check-vm.outputs.ip }}:5000/nvidia/cuda:128-ubuntu22.04_0206
6666
options: --device /dev/dri --ipc=host --runtime=nvidia --gpus all
6767
volumes:
6868
- /monster/ci/env/entrypoint.sh:/entrypoint.sh

0 commit comments

Comments
 (0)