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 at 01:00 UTC (8:00 AM Beijing) every day
32+ - cron : ' 0 0 * * *'
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 and CANN info
4854 run : |
49- pwd
5055 npu-smi info
5156 cat /usr/local/Ascend/ascend-toolkit/latest/"$(uname -i)"-linux/ascend_toolkit_install.info
5257
53- - name : Config mirrors
58+ - name : Config OS mirrors
59+ if : ${{ !endsWith(matrix.vllm_verison, '-openeuler') }}
5460 run : |
5561 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
5762 apt-get update -y
5863 apt install git curl -y
64+
65+ - name : Config OS mirrors
66+ if : ${{ endsWith(matrix.vllm_verison, '-openeuler') }}
67+ run : |
68+ yum update -y
69+ yum install git curl -y
70+
71+ - name : Config pip mirrors
72+ run : |
73+ pip config set global.index-url https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple
5974 git config --global url."https://gh-proxy.test.osinfra.cn/https://github.com/".insteadOf https://github.com/
6075
6176 - name : Checkout vllm-project/vllm-ascend repo
6277 uses : actions/checkout@v4
6378
64- - name : Run vllm-project/vllm test for V0 Engine
79+ - name : Run vllm-ascend/tests/doctest/run_tests.sh
6580 run : |
66- pwd
67- ls -la
81+ # PWD: /__w/vllm-ascend/vllm-ascend
6882 if [ ! -d /workspace/vllm-ascend/tests/doctest ]; then
6983 echo "Warning: the doctest path doesn't exists, copy now"
7084 cp -r tests/doctest /workspace/vllm-ascend/tests/
7185 fi
86+
87+ if [ -d /workspace/vllm-ascend ]; then
88+ echo "====> Prnint vllm-ascend git info"
89+ cd /workspace/vllm-ascend
90+ git --no-pager log -1 || true
91+ echo "====> Prnint vllm git info"
92+ cd /workspace/vllm
93+ git --no-pager log -1 || true
94+ fi
95+
96+ # Simulate container to enter directory
7297 cd /workspace
98+
99+ # Run real test
100+ echo "Test:"
73101 ./vllm-ascend/tests/doctest/run_tests.sh
0 commit comments