Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pytest Github Action Integration #15

Merged
merged 5 commits into from
Oct 27, 2023

Conversation

saileshd1402
Copy link
Contributor

@saileshd1402 saileshd1402 commented Oct 26, 2023

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) ========================

@saileshd1402 saileshd1402 marked this pull request as draft October 26, 2023 17:49
@saileshd1402 saileshd1402 marked this pull request as ready for review October 27, 2023 07:48
@johnugeorge johnugeorge merged commit 7ac93d3 into nutanix:main Oct 27, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants