@@ -8,13 +8,19 @@ permissions:
8
8
9
9
jobs :
10
10
pre-commit :
11
- runs-on : ubuntu-latest
11
+ runs-on : linux-amd64-cpu-0
12
+ container :
13
+ image : swr.cn-southwest-2.myhuaweicloud.com/base_image/ascend-ci/cann:8.2.rc1-910b-ubuntu22.04-py3.11
12
14
steps :
15
+ - name : Config mirrors
16
+ run : |
17
+ sed -Ei 's@(ports|archive).ubuntu.com@cache-service.nginx-pypi-cache.svc.cluster.local:8081@g' /etc/apt/sources.list
18
+ pip config set global.index-url http://cache-service.nginx-pypi-cache.svc.cluster.local/pypi/simple
19
+ pip config set global.trusted-host cache-service.nginx-pypi-cache.svc.cluster.local
20
+ apt-get update -y
21
+ apt install git -y
13
22
- name : Checkout vllm-project/vllm-ascend repo
14
23
uses : actions/checkout@v4
15
- - uses : actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
16
- with :
17
- python-version : " 3.11"
18
24
- run : echo "::add-matcher::.github/workflows/matchers/actionlint.json"
19
25
- run : echo "::add-matcher::.github/workflows/matchers/mypy.json"
20
26
- name : Checkout vllm-project/vllm repo
30
36
- name : Install vllm-ascend dev
31
37
run : |
32
38
pip install -r requirements-dev.txt --extra-index-url https://download.pytorch.org/whl/cpu
33
- - uses : pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1
39
+ git config --global --add safe.directory '*'
40
+ - name : Run pre-commit check
34
41
env :
35
- SHELLCHECK_OPTS : " --exclude=SC2046,SC2006,SC2086" # Exclude SC2046, SC2006, SC2086 for actionlint
36
- with :
37
- extra_args : --all-files --hook-stage manual
42
+ SHELLCHECK_OPTS : " --exclude=SC2046,SC2006,SC2086"
43
+ GOPROXY : " https://goproxy.cn,direct "
44
+ run : pre-commit run --all-files --hook-stage manual
0 commit comments