[Test] Enable code cov for V1 and enable push trigger (#1164)
### What this PR does / why we need it? - Enable code cov for V1 - Enable push triggered job ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? CI passed Signed-off-by: Yikun Jiang <yikunkero@gmail.com>
This commit is contained in:
32
.github/workflows/vllm_ascend_test.yaml
vendored
32
.github/workflows/vllm_ascend_test.yaml
vendored
@@ -18,8 +18,22 @@
|
|||||||
name: 'test'
|
name: 'test'
|
||||||
|
|
||||||
on:
|
on:
|
||||||
schedule:
|
push:
|
||||||
- cron: '0 23 * * *'
|
# Enable merged test per commit
|
||||||
|
branches:
|
||||||
|
- 'main'
|
||||||
|
paths:
|
||||||
|
- '*.txt'
|
||||||
|
- '**/*.py'
|
||||||
|
- '.github/workflows/vllm_ascend_test.yaml'
|
||||||
|
- '!docs/**'
|
||||||
|
- 'pytest.ini'
|
||||||
|
- '!benchmarks/**'
|
||||||
|
- 'tools/mypy.sh'
|
||||||
|
- 'mypy.ini'
|
||||||
|
- '.github/workflows/*.ya?ml'
|
||||||
|
- '.github/workflows/actionlint.*'
|
||||||
|
- '.github/workflows/matchers/actionlint.json'
|
||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
branches:
|
||||||
- 'main'
|
- 'main'
|
||||||
@@ -131,7 +145,7 @@ jobs:
|
|||||||
- name: Install packages
|
- name: Install packages
|
||||||
run: |
|
run: |
|
||||||
apt-get update -y
|
apt-get update -y
|
||||||
apt-get install -y python3-pip git vim wget net-tools gcc g++ cmake libnuma-dev
|
apt-get install -y python3-pip git vim wget net-tools gcc g++ cmake libnuma-dev curl gnupg2
|
||||||
|
|
||||||
- name: Checkout vllm-project/vllm repo
|
- name: Checkout vllm-project/vllm repo
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@@ -163,7 +177,17 @@ jobs:
|
|||||||
TORCH_DEVICE_BACKEND_AUTOLOAD: 0
|
TORCH_DEVICE_BACKEND_AUTOLOAD: 0
|
||||||
run: |
|
run: |
|
||||||
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/Ascend/ascend-toolkit/latest/x86_64-linux/devlib
|
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/Ascend/ascend-toolkit/latest/x86_64-linux/devlib
|
||||||
pytest -sv tests/ut
|
pytest -sv --cov --cov-report=xml:unittests-coverage.xml tests/ut
|
||||||
|
|
||||||
|
- name: Upload coverage to Codecov
|
||||||
|
if: ${{ matrix.vllm_version == 'main' }}
|
||||||
|
uses: codecov/codecov-action@v5
|
||||||
|
env:
|
||||||
|
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
|
||||||
|
with:
|
||||||
|
flags: unittests
|
||||||
|
name: vllm-ascend
|
||||||
|
verbose: true
|
||||||
|
|
||||||
e2e:
|
e2e:
|
||||||
needs: [lint]
|
needs: [lint]
|
||||||
|
|||||||
30
codecov.yml
Normal file
30
codecov.yml
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
#
|
||||||
|
# Copyright (c) 2025 Huawei Technologies Co., Ltd. All Rights Reserved.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
# This file is a part of the vllm-ascend project.
|
||||||
|
#
|
||||||
|
|
||||||
|
coverage:
|
||||||
|
status:
|
||||||
|
# non-voting, new code must be fully tested
|
||||||
|
patch:
|
||||||
|
default:
|
||||||
|
target: 100%
|
||||||
|
# non-voting
|
||||||
|
informational: true
|
||||||
|
# non-voting
|
||||||
|
project:
|
||||||
|
default:
|
||||||
|
# non-voting
|
||||||
|
informational: true
|
||||||
@@ -11,3 +11,4 @@ types-jsonschema
|
|||||||
xgrammar
|
xgrammar
|
||||||
zmq
|
zmq
|
||||||
types-psutil
|
types-psutil
|
||||||
|
pytest-cov
|
||||||
|
|||||||
Reference in New Issue
Block a user