From b4c5180eb4b9d3f07ff0ccbd0cbebf621e580558 Mon Sep 17 00:00:00 2001 From: vyomakesh09 Date: Wed, 6 Mar 2024 01:05:36 +0000 Subject: [PATCH] refactor examples and workflows --- run_examples.sh | 22 ---------------------- scripts/run_examples.sh | 2 +- 2 files changed, 1 insertion(+), 23 deletions(-) delete mode 100644 run_examples.sh diff --git a/run_examples.sh b/run_examples.sh deleted file mode 100644 index 3378d4af..00000000 --- a/run_examples.sh +++ /dev/null @@ -1,22 +0,0 @@ -#!/bin/bash - -# Define a file to keep track of successfully executed scripts -SUCCESS_LOG="successful_runs.log" - -for f in /home/v/swarms/playground/examples/example_*.py; do - # Check if the script has been logged as successful - if grep -Fxq "$f" "$SUCCESS_LOG"; then - echo "Skipping ${f} as it ran successfully in a previous run." - else - # Run the script if not previously successful - if /home/kye/miniconda3/envs/swarms/bin/python "$f" 2>>errors.txt; then - echo "(${f}) ran successfully without errors." - # Log the successful script execution - echo "$f" >> "$SUCCESS_LOG" - else - echo "Error encountered in ${f}. Check errors.txt for details." - break - fi - fi - echo "##############################################################################" -done diff --git a/scripts/run_examples.sh b/scripts/run_examples.sh index e41c7e1f..f7978058 100644 --- a/scripts/run_examples.sh +++ b/scripts/run_examples.sh @@ -3,7 +3,7 @@ # Define a file to keep track of successfully executed scripts SUCCESS_LOG="successful_runs.log" -for f in examples/example_*.py; do +for f in /swarms/playground/examples/example_*.py; do # Check if the script has been logged as successful if grep -Fxq "$f" "$SUCCESS_LOG"; then echo "Skipping ${f} as it ran successfully in a previous run."