1515# This file is a part of the vllm-ascend project.
1616#
1717
18- name : ' e2e test '
18+ name : ' Doctest '
1919
2020on :
2121 pull_request :
2222 branches :
2323 - ' main'
2424 - ' *-dev'
2525 paths :
26+ # If we are changing the doctest we should do a PR test
2627 - ' .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 * * *'
2732
2833# Bash shells do not use ~/.profile or ~/.bashrc so these shells need to be explicitly
2934# declared as "shell: bash -el {0}" on steps that need to be properly activated.
@@ -38,36 +43,59 @@ jobs:
3843 # Each version should be tested
3944 fail-fast : false
4045 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 ]
4247 name : vLLM Ascend test
4348 runs-on : linux-arm64-npu-1
4449 container :
4550 image : m.daocloud.io/quay.io/ascend/vllm-ascend:${{ matrix.vllm_verison }}
4651 steps :
47- - name : Check npu and CANN info
52+ - name : Check NPU and CANN info
4853 run : |
49- pwd
5054 npu-smi info
5155 cat /usr/local/Ascend/ascend-toolkit/latest/"$(uname -i)"-linux/ascend_toolkit_install.info
5256
53- - name : Config mirrors
57+ - name : Config OS mirrors
58+ if : ${{ !endsWith(matrix.vllm_verison, '-openeuler') }}
5459 run : |
5560 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
5761 apt-get update -y
5862 apt install git curl -y
63+
64+ - name : Config OS mirrors
65+ if : ${{ endsWith(matrix.vllm_verison, '-openeuler') }}
66+ run : |
67+ yum update -y
68+ yum install git curl -y
69+
70+ - name : Config pip mirrors
71+ run : |
72+ pip config set global.index-url https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple
5973 git config --global url."https://gh-proxy.test.osinfra.cn/https://github.com/".insteadOf https://github.com/
6074
6175 - name : Checkout vllm-project/vllm-ascend repo
6276 uses : actions/checkout@v4
6377
64- - name : Run vllm-project/vllm test for V0 Engine
78+ - name : Run vllm-ascend/tests/doctest/run_tests.sh
6579 run : |
66- pwd
67- ls -la
80+ # PWD: /__w/vllm-ascend/vllm-ascend
6881 if [ ! -d /workspace/vllm-ascend/tests/doctest ]; then
6982 echo "Warning: the doctest path doesn't exists, copy now"
7083 cp -r tests/doctest /workspace/vllm-ascend/tests/
7184 fi
72- cd /workspace
73- ./vllm-ascend/tests/doctest/run_tests.sh
85+
86+ if [ -d /workspace/vllm-ascend ]; then
87+ echo "====> Prnint vllm-ascend git info"
88+ cd /workspace/vllm-ascend
89+ git --no-pager log -1 || true
90+ echo "====> Prnint vllm git info"
91+ cd /workspace/vllm
92+ git --no-pager log -1 || true
93+ fi
94+
95+ echo "Test:"
96+ # Simulate container to enter directory
97+ # TODO(yikun): should change `/` to `/workspace` after #725 relsoved:
98+ # [Bug]: Fail to start vllm under /workspace
99+ # https://github.com/vllm-project/vllm-ascend/issues/725
100+ cd /
101+ ./workspace/vllm-ascend/tests/doctest/run_tests.sh
0 commit comments