Skip to content

Commit 7d9ae22

Browse files
authored
[CI] use pytest.ini to manage vllm native tests (vllm-project#5)
### What this PR does / why we need it? Use `pytest.ini` to manage vllm native tests. This will convert the original test script whitelist to a blacklist to prevent missing the newly added test scripts of the upstream vLLM. **note**: _we do **not** manage the test scripts of vLLM-Ascend in `pytest.ini`, because if we do so, there will be conflicts between vLLM and vLLM-Ascend's `conftest.py`._ ### Does this PR introduce _any_ user-facing change? N/A ### How was this patch tested? CI passed with new existing test. Signed-off-by: MengqingCao <cmq0113@163.com>
1 parent 8cb5615 commit 7d9ae22

File tree

4 files changed

+54
-424
lines changed

4 files changed

+54
-424
lines changed

.github/workflows/vllm_ascend_test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,4 +103,4 @@ jobs:
103103
104104
- name: Run vllm-project/vllm test
105105
run: |
106-
bash tools/npu-vllm-test.sh
106+
pytest -sv

pytest.ini

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
[pytest]
2+
minversion = 6.0
3+
norecursedirs =
4+
vllm-empty/tests/prefix_caching
5+
vllm-empty/tests/weight_loading
6+
vllm-empty/tests/samplers
7+
vllm-empty/tests/kernels
8+
vllm-empty/tests/quantization
9+
vllm-empty/tests/tool_use
10+
vllm-empty/tests/runai_model_streamer
11+
vllm-empty/tests/kv_transfer
12+
vllm-empty/tests/plugins
13+
vllm-empty/tests/plugins_tests
14+
vllm-empty/tests/prompt_adapter
15+
vllm-empty/tests/compile
16+
vllm-empty/tests/lora
17+
vllm-empty/tests/models
18+
vllm-empty/tests/multimodal
19+
vllm-empty/tests/standalone_tests
20+
vllm-empty/tests/async_engine
21+
vllm-empty/tests/mq_llm_engine
22+
vllm-empty/tests/tokenization
23+
vllm-empty/tests/core
24+
vllm-empty/tests/tracing
25+
vllm-empty/tests/engine
26+
vllm-empty/tests/tensorizer_loader
27+
vllm-empty/tests/entrypoints
28+
vllm-empty/tests/model_executor
29+
vllm-empty/tests/encoder_decoder
30+
vllm-empty/tests/v1
31+
vllm-empty/tests/spec_decode
32+
vllm-empty/tests/multi_step
33+
vllm-empty/tests/vllm_test_utils
34+
vllm-empty/tests/tpu
35+
vllm-empty/tests/distributed
36+
vllm-empty/tests/basic_correctness
37+
vllm-empty/tests/worker
38+
vllm-empty/tests/metrics
39+
vllm-empty/tests/neuron
40+
41+
addopts = --ignore=vllm-empty/tests/test_utils.py
42+
--ignore=vllm-empty/tests/test_config.py
43+
--ignore=vllm-empty/tests/test_scalartype.py
44+
--ignore=vllm-empty/tests/test_embedded_commit.py
45+
--ignore=vllm-empty/tests/test_inputs.py
46+
--ignore=vllm-empty/tests/test_sharded_state_loader.py
47+
--ignore=vllm-empty/tests/test_logger.py
48+
--ignore=vllm-empty/tests/test_logits_processor.py
49+
--ignore=vllm-empty/tests/test_regression.py
50+
51+
testpaths =
52+
vllm-empty/tests

requirements-dev.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
-r requirements-lint.txt
22
modelscope
3-
pytest
3+
pytest >= 6.0

0 commit comments

Comments
 (0)