mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-08-05 18:22:41 +00:00
Revert workflow back to original status for PR#737
This commit is contained in:
parent
e5da50fcc3
commit
b61108c3f0
1 changed files with 1 additions and 11 deletions
|
@ -258,17 +258,7 @@ jobs:
|
||||||
for file in "$dir"/test_*.py; do
|
for file in "$dir"/test_*.py; do
|
||||||
test_name=$(basename "$file")
|
test_name=$(basename "$file")
|
||||||
new_file="result-${dir_name}-${test_name}.xml"
|
new_file="result-${dir_name}-${test_name}.xml"
|
||||||
#TODO
|
if torchrun $(which pytest) -s -v ${TESTS_PATH}/${dir_name}/${test_name} -m "${PROVIDER_ID} and ${MODEL_ID}" \
|
||||||
# Add if test_name = test_model_registration.py then echo "hello"
|
|
||||||
if [ "$test_name" = "test_model_registration.py" ]; then
|
|
||||||
echo "Found test_model_registration.py"
|
|
||||||
if torchrun $(which pytest) -v -s -k "${PROVIDER_ID}" --inference-model="${MODEL_ID}" \
|
|
||||||
--junitxml="${{ github.workspace }}/${new_file}"; then
|
|
||||||
echo "Ran the test_model_registration.py"
|
|
||||||
else
|
|
||||||
echo "Did NOT run the test_model_registration.py"
|
|
||||||
fi
|
|
||||||
elif torchrun $(which pytest) -s -v ${TESTS_PATH}/${dir_name}/${test_name} -m "${PROVIDER_ID} and ${MODEL_ID}" \
|
|
||||||
--junitxml="${{ github.workspace }}/${new_file}"; then
|
--junitxml="${{ github.workspace }}/${new_file}"; then
|
||||||
echo "Ran test: ${test_name}"
|
echo "Ran test: ${test_name}"
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue