From 9653517b1fbeec54b7c6ebc8d3e65182b905f116 Mon Sep 17 00:00:00 2001 From: Cemberk Date: Wed, 13 Nov 2024 23:07:39 -0600 Subject: [PATCH] Update fork-maintenance.yml --- .github/workflows/fork-maintenance.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/fork-maintenance.yml b/.github/workflows/fork-maintenance.yml index 6ed76e859bafa7..adfd37c1527a2e 100644 --- a/.github/workflows/fork-maintenance.yml +++ b/.github/workflows/fork-maintenance.yml @@ -27,7 +27,7 @@ jobs: pip install parameterized && pip install -e . #unit_test_command: cd tests; folders=$$(python3 -c 'import os; tests = os.getcwd(); models = "models"; model_tests = os.listdir(os.path.join(tests, models)); d1 = sorted(list(filter(os.path.isdir, os.listdir(tests)))); d2 = sorted(list(filter(os.path.isdir, [os.path.join(models, x) for x in model_tests]))); d1.remove(models); d = d2 + d1; print(" ".join(d[:5]))'); cd ..; for folder in \${folders[@]}; do pytest tests/\${folder} -v --make-reports=huggingface_unit_tests_\${machine_type}_run_models_gpu_\${folder} -rfEs --continue-on-collection-errors -m \"not not_device_test\" -p no:cacheprovider; done; allstats=\$(find reports -name stats.txt); for stat in \${allstats[@]}; do echo \$stat; cat \$stat; done - unit_test_command: folders=\$(python3 -c 'import os; print(\"hello\")'); echo \$folders; cd tests; pwd; ls; exit 1; + unit_test_command: folders=\$(python3 -c 'import os; print(\"hello\")'); echo \$folders; pwd; exit 1; #cd tests; folders=\$(python3 -c \import os; tests = os.getcwd(); models = \"models\"; model_tests = os.listdir(os.path.join(tests, models)); d1 = sorted(list(filter(os.path.isdir, os.listdir(tests)))); d2 = sorted(list(filter(os.path.isdir, [os.path.join(models, x) for x in model_tests]))); d1.remove(models); d = d2 + d1; print(\" \".join(d[:5]))' ); cd ..; for folder in \${folders[@]}; do pytest tests/\${folder} -v --make-reports=huggingface_unit_tests_\${machine_type}_run_models_gpu_\${folder} -rfEs --continue-on-collection-errors -m \"not not_device_test\" -p no:cacheprovider; done; allstats=\$(find reports -name stats.txt); for stat in \${allstats[@]}; do echo \$stat; cat \$stat; done #unit_test_command: cd tests; pwd; ls; folders=$(python3 -c 'import os; tests = os.getcwd(); repo_root = os.path.dirname(tests); models_dir = os.path.join(repo_root, "models"); import sys; sys.path.append(repo_root); model_tests = os.listdir(models_dir); d1 = sorted([d for d in os.listdir(tests) if os.path.isdir(os.path.join(tests, d)) and d != "models"]); d2 = sorted([os.path.join("models", x) for x in model_tests if os.path.isdir(os.path.join(models_dir, x))]); d = d2 + d1; print(" ".join(d[:5]))'); cd ..; for folder in ${folders[@]}; do pytest tests/${folder} -v --make-reports=huggingface_unit_tests_${machine_type}_run_models_gpu_${folder} -rfEs --continue-on-collection-errors -m "not not_device_test" -p no:cacheprovider; done; allstats=$(find reports -name stats.txt); for stat in ${allstats[@]}; do echo $stat; cat $stat; done