Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Integrated Github Actions with pytests for both download.py and run.sh
Expected Output of Pytests:
============================= test session starts ==============================
platform linux -- Python 3.11.6, pytest-7.4.3, pluggy-1.3.0 -- /opt/hostedtoolcache/Python/3.11.6/x64/bin/python3
cachedir: .pytest_cache
rootdir: /home/runner/work/nai-llm-testing/nai-llm-testing/llm
collecting ... collected 23 items
tests/test_download.py::test_default_generate_success PASSED [ 4%]
tests/test_download.py::test_wrong_model_store_throw_error PASSED [ 8%]
tests/test_download.py::test_wrong_model_path_throw_error PASSED [ 13%]
tests/test_download.py::test_non_empty_model_path_throw_error PASSED [ 17%]
tests/test_download.py::test_invalid_repo_version_throw_error PASSED [ 21%]
tests/test_download.py::test_valid_repo_version_success PASSED [ 26%]
tests/test_download.py::test_invalid_handler_throw_error PASSED [ 30%]
tests/test_download.py::test_skip_download_throw_error PASSED [ 34%]
tests/test_download.py::test_mar_exists_throw_error PASSED [ 39%]
tests/test_download.py::test_skip_download_success PASSED [ 43%]
tests/test_download.py::test_custom_model_success PASSED [ 47%]
tests/test_torchserve_run.py::test_default_generate_success PASSED [ 52%]
tests/test_torchserve_run.py::test_generate_mar_success PASSED [ 56%]
tests/test_torchserve_run.py::test_default_success PASSED [ 60%]
tests/test_torchserve_run.py::test_default_no_input_path_success PASSED [ 65%]
tests/test_torchserve_run.py::test_no_model_name_throw_error PASSED [ 69%]
tests/test_torchserve_run.py::test_wrong_model_name_throw_error PASSED [ 73%]
tests/test_torchserve_run.py::test_no_model_store_throw_error PASSED [ 78%]
tests/test_torchserve_run.py::test_wrong_model_store_throw_error PASSED [ 82%]
tests/test_torchserve_run.py::test_wrong_input_path_throw_error PASSED [ 86%]
tests/test_torchserve_run.py::test_vaild_repo_version_success PASSED [ 91%]
tests/test_torchserve_run.py::test_invalid_repo_version_throw_error PASSED [ 95%]
tests/test_torchserve_run.py::test_custom_model_success PASSED [100%]
======================== 23 passed in 533.20s (0:08:53) ========================