-
Notifications
You must be signed in to change notification settings - Fork 533
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Skip
vllm
-related tests on non-linux platforms
Fix #1356
- Loading branch information
1 parent
6a8612b
commit d32dfde
Showing
3 changed files
with
20 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import sys | ||
|
||
import pytest | ||
|
||
|
||
def pytest_collection_modifyitems(config, items): | ||
if sys.platform != "linux": | ||
skip_vllm = pytest.mark.skip(reason="vLLM models can only be run on Linux.") | ||
for item in items: | ||
if "test_integration_vllm" in item.nodeid: | ||
item.add_marker(skip_vllm) | ||
print( | ||
f"WARNING: {item.nodeid} is skipped because vLLM only supports Linux platform (including WSL)." | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters