Skip to content

Commit

Permalink
[CI] use pytest.ini to manage vllm native tests (#5)
Browse files Browse the repository at this point in the history
### 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>
  • Loading branch information
MengqingCao authored Feb 6, 2025
1 parent 8cb5615 commit 7d9ae22
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 424 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/vllm_ascend_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -103,4 +103,4 @@ jobs:
- name: Run vllm-project/vllm test
run: |
bash tools/npu-vllm-test.sh
pytest -sv
52 changes: 52 additions & 0 deletions pytest.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
[pytest]
minversion = 6.0
norecursedirs =
vllm-empty/tests/prefix_caching
vllm-empty/tests/weight_loading
vllm-empty/tests/samplers
vllm-empty/tests/kernels
vllm-empty/tests/quantization
vllm-empty/tests/tool_use
vllm-empty/tests/runai_model_streamer
vllm-empty/tests/kv_transfer
vllm-empty/tests/plugins
vllm-empty/tests/plugins_tests
vllm-empty/tests/prompt_adapter
vllm-empty/tests/compile
vllm-empty/tests/lora
vllm-empty/tests/models
vllm-empty/tests/multimodal
vllm-empty/tests/standalone_tests
vllm-empty/tests/async_engine
vllm-empty/tests/mq_llm_engine
vllm-empty/tests/tokenization
vllm-empty/tests/core
vllm-empty/tests/tracing
vllm-empty/tests/engine
vllm-empty/tests/tensorizer_loader
vllm-empty/tests/entrypoints
vllm-empty/tests/model_executor
vllm-empty/tests/encoder_decoder
vllm-empty/tests/v1
vllm-empty/tests/spec_decode
vllm-empty/tests/multi_step
vllm-empty/tests/vllm_test_utils
vllm-empty/tests/tpu
vllm-empty/tests/distributed
vllm-empty/tests/basic_correctness
vllm-empty/tests/worker
vllm-empty/tests/metrics
vllm-empty/tests/neuron

addopts = --ignore=vllm-empty/tests/test_utils.py
--ignore=vllm-empty/tests/test_config.py
--ignore=vllm-empty/tests/test_scalartype.py
--ignore=vllm-empty/tests/test_embedded_commit.py
--ignore=vllm-empty/tests/test_inputs.py
--ignore=vllm-empty/tests/test_sharded_state_loader.py
--ignore=vllm-empty/tests/test_logger.py
--ignore=vllm-empty/tests/test_logits_processor.py
--ignore=vllm-empty/tests/test_regression.py

testpaths =
vllm-empty/tests
2 changes: 1 addition & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
-r requirements-lint.txt
modelscope
pytest
pytest >= 6.0
Loading

0 comments on commit 7d9ae22

Please sign in to comment.