Skip to content

Commit

Permalink
Trying to use dirname in array
Browse files Browse the repository at this point in the history
  • Loading branch information
Shihab Suliman committed May 10, 2024
1 parent ec9d46b commit 8c2f058
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/scripts/round_robin.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import json

modules_grps=(sys.argv)[1:]
print(modules_grps)
modules=[]
num_jobs=5

Expand All @@ -22,6 +23,6 @@ def generate_matrix(jobs):

for i in range(0,len(modules_grps)-1,2):
modules.append([modules_grps[i],int(modules_grps[i+1])])

print(modules)
with open("github_tests.json", "w") as matrix_file:
json.dump(generate_matrix(split_modules(modules,num_jobs)), matrix_file)
1 change: 0 additions & 1 deletion .github/scripts/tests_group.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ else
module_grps+=("$module_name" "$count")
done
# Run python script to define job matrix based on found tests
echo $module_grps
python3 $work_dir/round_robin.py "${module_grps[@]}"

fi
Expand Down

0 comments on commit 8c2f058

Please sign in to comment.