@@ -8,19 +8,13 @@ permissions:
8
8
9
9
jobs :
10
10
pre-commit :
11
- runs-on : linux-amd64-cpu-8
12
- container :
13
- image : swr.cn-southwest-2.myhuaweicloud.com/base_image/ascend-ci/cann:8.2.rc1-910b-ubuntu22.04-py3.11
11
+ runs-on : ubuntu-latest
14
12
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
22
13
- name : Checkout vllm-project/vllm-ascend repo
23
14
uses : actions/checkout@v4
15
+ - uses : actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
16
+ with :
17
+ python-version : " 3.11"
24
18
- run : echo "::add-matcher::.github/workflows/matchers/actionlint.json"
25
19
- run : echo "::add-matcher::.github/workflows/matchers/mypy.json"
26
20
- name : Checkout vllm-project/vllm repo
36
30
- name : Install vllm-ascend dev
37
31
run : |
38
32
pip install -r requirements-dev.txt --extra-index-url https://download.pytorch.org/whl/cpu
39
- git config --global --add safe.directory '*'
40
- - name : Run pre-commit check
33
+ - uses : pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1
41
34
env :
42
- SHELLCHECK_OPTS : " --exclude=SC2046,SC2006,SC2086"
43
- GOPROXY : " https://goproxy.cn,direct"
44
- run : pre-commit run --all-files --hook-stage manual
35
+ SHELLCHECK_OPTS : " --exclude=SC2046,SC2006,SC2086" # Exclude SC2046, SC2006, SC2086 for actionlint
36
+ with :
37
+ extra_args : --all-files --hook-stage manual
38
+
0 commit comments