15
15
# This file is a part of the vllm-ascend project.
16
16
#
17
17
18
- name : ' e2e test '
18
+ name : ' Doctest '
19
19
20
20
on :
21
21
pull_request :
22
22
branches :
23
23
- ' main'
24
24
- ' *-dev'
25
25
paths :
26
+ # If we are changing the doctest we should do a PR test
26
27
- ' .github/workflows/vllm_ascend_doctest.yaml'
28
+ - ' tests/doctest/**'
29
+ schedule :
30
+ # Runs at 01:00 UTC (8:00 AM Beijing) every day
31
+ - cron : ' 0 0 * * *'
27
32
28
33
# Bash shells do not use ~/.profile or ~/.bashrc so these shells need to be explicitly
29
34
# declared as "shell: bash -el {0}" on steps that need to be properly activated.
@@ -38,15 +43,14 @@ jobs:
38
43
# Each version should be tested
39
44
fail-fast : false
40
45
matrix :
41
- vllm_verison : [main, v0.7.3-dev, v0.8.4rc2 , v0.8.4rc1 ]
46
+ vllm_verison : [main, v0.7.3-dev, main-openeuler , v0.7.3-dev-openeuler ]
42
47
name : vLLM Ascend test
43
48
runs-on : linux-arm64-npu-1
44
49
container :
45
50
image : m.daocloud.io/quay.io/ascend/vllm-ascend:${{ matrix.vllm_verison }}
46
51
steps :
47
- - name : Check npu and CANN info
52
+ - name : Check NPU and CANN info
48
53
run : |
49
- pwd
50
54
npu-smi info
51
55
cat /usr/local/Ascend/ascend-toolkit/latest/"$(uname -i)"-linux/ascend_toolkit_install.info
52
56
@@ -63,11 +67,21 @@ jobs:
63
67
64
68
- name : Run vllm-project/vllm test for V0 Engine
65
69
run : |
66
- pwd
67
- ls -la
70
+ # Prnint hash info
71
+ cd /workspace/vllm-ascend
72
+ git --no-pager log -1
73
+ cd /workspace/vllm
74
+ git --no-pager log -1
75
+
76
+ # PWD: /__w/vllm-ascend/vllm-ascend
68
77
if [ ! -d /workspace/vllm-ascend/tests/doctest ]; then
69
78
echo "Warning: the doctest path doesn't exists, copy now"
70
79
cp -r tests/doctest /workspace/vllm-ascend/tests/
71
80
fi
72
- cd /workspace
73
- ./vllm-ascend/tests/doctest/run_tests.sh
81
+
82
+ # Simulate container to enter directory
83
+ # TODO(yikun): should change `/` to `/workspace` after #725 relsoved:
84
+ # [Bug]: Fail to start vllm under /workspace
85
+ # https://github.com/vllm-project/vllm-ascend/issues/725
86
+ cd /
87
+ ./workspace/vllm-ascend/tests/doctest/run_tests.sh
0 commit comments