1515# This file is a part of the vllm-ascend project.
1616#
1717
18- name : ' e2e test '
18+ name : ' Doctest '
1919
2020on :
21+ workflow_dispatch :
2122 pull_request :
2223 branches :
2324 - ' main'
2425 - ' *-dev'
2526 paths :
27+ # If we are changing the doctest we should do a PR test
2628 - ' .github/workflows/vllm_ascend_doctest.yaml'
29+ - ' tests/doctest/**'
30+ schedule :
31+ # Runs every 2 hours
32+ - cron : ' 0 */2 * * *'
2733
2834# Bash shells do not use ~/.profile or ~/.bashrc so these shells need to be explicitly
2935# declared as "shell: bash -el {0}" on steps that need to be properly activated.
@@ -38,36 +44,58 @@ jobs:
3844 # Each version should be tested
3945 fail-fast : false
4046 matrix :
41- vllm_verison : [main, v0.7.3-dev, v0.8.4rc2 , v0.8.4rc1 ]
47+ vllm_verison : [main, v0.7.3-dev, main-openeuler , v0.7.3-dev-openeuler ]
4248 name : vLLM Ascend test
4349 runs-on : linux-arm64-npu-1
4450 container :
4551 image : m.daocloud.io/quay.io/ascend/vllm-ascend:${{ matrix.vllm_verison }}
4652 steps :
47- - name : Check npu and CANN info
53+ - name : Check NPU/CANN and git info
4854 run : |
49- pwd
55+ echo "====> Prnint NPU/CANN info"
5056 npu-smi info
5157 cat /usr/local/Ascend/ascend-toolkit/latest/"$(uname -i)"-linux/ascend_toolkit_install.info
5258
53- - name : Config mirrors
59+ echo "====> Prnint vllm-ascend git info"
60+ cd /vllm-workspace/vllm-ascend
61+ git --no-pager log -1 || true
62+ echo "====> Prnint vllm git info"
63+ cd /vllm-workspace/vllm
64+ git --no-pager log -1 || true
65+
66+ - name : Config OS mirrors
67+ if : ${{ !endsWith(matrix.vllm_verison, '-openeuler') }}
5468 run : |
5569 sed -i 's|ports.ubuntu.com|mirrors.tuna.tsinghua.edu.cn|g' /etc/apt/sources.list
56- pip config set global.index-url https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple
5770 apt-get update -y
5871 apt install git curl -y
72+
73+ - name : Config OS mirrors
74+ if : ${{ endsWith(matrix.vllm_verison, '-openeuler') }}
75+ run : |
76+ yum update -y
77+ yum install git curl -y
78+
79+ - name : Config pip mirrors
80+ run : |
81+ pip config set global.index-url https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple
5982 git config --global url."https://gh-proxy.test.osinfra.cn/https://github.com/".insteadOf https://github.com/
6083
6184 - name : Checkout vllm-project/vllm-ascend repo
6285 uses : actions/checkout@v4
6386
64- - name : Run vllm-project/vllm test for V0 Engine
87+ - name : Run vllm-ascend/tests/doctest/run_tests.sh
6588 run : |
66- pwd
67- ls -la
68- if [ ! -d /workspace/vllm-ascend/tests/doctest ]; then
89+ # PWD: /__w/vllm-ascend/vllm-ascend
90+ # Address old branch like v0.7.3:
91+ if [ ! -d /vllm- workspace/vllm-ascend/tests/doctest ]; then
6992 echo "Warning: the doctest path doesn't exists, copy now"
70- cp -r tests/doctest /workspace/vllm-ascend/tests/
93+ cp -r tests/doctest /vllm- workspace/vllm-ascend/tests/
7194 fi
95+
96+ # Simulate container to enter directory
7297 cd /workspace
73- ./vllm-ascend/tests/doctest/run_tests.sh
98+
99+ # Run real test
100+ echo "Test:"
101+ /vllm-workspace/vllm-ascend/tests/doctest/run_tests.sh
0 commit comments