Skip to content

Commit cabfb2b

Browse files
[Test] Resolve vllm-ascend version accuracy test (#1769)
### What this PR does / why we need it? Resolve vllm-ascend version for accuracy test ### Does this PR introduce _any_ user-facing change? ### How was this patch tested? - vLLM version: v0.9.2 - vLLM main: vllm-project/vllm@66f6fbd Signed-off-by: hfadzxy <starmoon_zhang@163.com>
1 parent d3c6dd9 commit cabfb2b

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

.github/workflows/accuracy_test.yaml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,23 @@ jobs:
169169
working-directory: ./vllm-empty
170170
run: VLLM_TARGET_DEVICE=empty pip install -e .
171171

172+
- name: Resolve vllm-ascend version
173+
run: |
174+
VERSION_INPUT="${{ github.event.inputs.vllm-ascend-version }}"
175+
176+
if [[ "$VERSION_INPUT" == "main" ]]; then
177+
TAGS=$(git ls-remote --tags --sort=-v:refname https://github.com/vllm-project/vllm-ascend "v*" | cut -f2 | sed 's|refs/tags/||')
178+
LATEST_TAG=$(echo "$TAGS" | head -n1)
179+
if [[ -z "$LATEST_TAG" ]]; then
180+
RESOLVED_VERSION="main"
181+
else
182+
RESOLVED_VERSION="$LATEST_TAG"
183+
fi
184+
else
185+
RESOLVED_VERSION="$VERSION_INPUT"
186+
fi
187+
echo "GHA_VLLM_ASCEND_VERSION=$RESOLVED_VERSION" >> $GITHUB_ENV
188+
172189
- name: Checkout vllm-project/vllm-ascend repo
173190
uses: actions/checkout@v4
174191
with:
@@ -224,7 +241,6 @@ jobs:
224241
pip show torch | grep "Version:" | awk '{print "GHA_TORCH_VERSION="$2}'
225242
pip show torch_npu | grep "Version:" | awk '{print "GHA_TORCH_NPU_VERSION="$2}'
226243
pip show vllm | grep "Version:" | awk '{print "GHA_VLLM_VERSION="$2}' | sed 's/+.*//'
227-
echo "GHA_VLLM_ASCEND_VERSION=${{ github.event.inputs.vllm-ascend-version || github.ref }}"
228244
} >> "$GITHUB_ENV"
229245
230246
- name: Print versions

0 commit comments

Comments
 (0)