[test] update test cmd (#9544)

Co-authored-by: frozenleaves <frozen@Mac.local>
Co-authored-by: Yaowei Zheng <hiyouga@buaa.edu.cn>
This commit is contained in:
浮梦 2025-11-27 17:59:42 +08:00 committed by GitHub
parent 955396e8a5
commit d1f585f80a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 4 additions and 1 deletions

View File

@ -8,6 +8,7 @@ on:
paths:
- "**/*.py"
- "requirements.txt"
- "Makefile"
- ".github/workflows/*.yml"
pull_request:
branches:
@ -15,6 +16,7 @@ on:
paths:
- "**/*.py"
- "requirements.txt"
- "Makefile"
- ".github/workflows/*.yml"
jobs:

View File

@ -21,4 +21,4 @@ style:
ruff format $(check_dirs)
test:
CUDA_VISIBLE_DEVICES= WANDB_DISABLED=true pytest -vv tests/
CUDA_VISIBLE_DEVICES= ASCEND_RT_VISIBLE_DEVICES=0 WANDB_DISABLED=true pytest -vv --import-mode=importlib tests/ tests_v1/

View File

@ -0,0 +1 @@