@@ -76,6 +76,16 @@ if [[ "${JOB_BASE_NAME}" == *worker_* ]]; then
7676 FILES_TO_RUN+=($( basename $filename .py) )
7777 fi
7878 count=$(( count+ 1 ))
79+ done
80+ for filename in $( find recipes_source/ -name ' *.py' -not -path ' */data/*' ) ; do
81+ if [ $(( $count % $NUM_WORKERS )) != $WORKER_ID ]; then
82+ echo " Removing runnable code from " $filename
83+ python $DIR /remove_runnable_code.py $filename $filename
84+ else
85+ echo " Keeping " $filename
86+ FILES_TO_RUN+=($( basename $filename .py) )
87+ fi
88+ count=$(( count+ 1 ))
7989 done
8090 echo " FILES_TO_RUN: " ${FILES_TO_RUN[@]}
8191
@@ -84,13 +94,13 @@ if [[ "${JOB_BASE_NAME}" == *worker_* ]]; then
8494
8595 # Step 4: If any of the generated files are not related the tutorial files we want to run,
8696 # then we remove them
87- for filename in $( find docs/beginner docs/intermediate docs/advanced -name ' *.html' ) ; do
97+ for filename in $( find docs/beginner docs/intermediate docs/advanced docs/recipes -name ' *.html' ) ; do
8898 file_basename=$( basename $filename .html)
8999 if [[ ! " ${FILES_TO_RUN[@]} " =~ " ${file_basename} " ]]; then
90100 rm $filename
91101 fi
92102 done
93- for filename in $( find docs/beginner docs/intermediate docs/advanced -name ' *.rst' ) ; do
103+ for filename in $( find docs/beginner docs/intermediate docs/advanced docs/recipes -name ' *.rst' ) ; do
94104 file_basename=$( basename $filename .rst)
95105 if [[ ! " ${FILES_TO_RUN[@]} " =~ " ${file_basename} " ]]; then
96106 rm $filename
@@ -108,13 +118,13 @@ if [[ "${JOB_BASE_NAME}" == *worker_* ]]; then
108118 rm $filename
109119 fi
110120 done
111- for filename in $( find docs/_sources/beginner docs/_sources/intermediate docs/_sources/advanced -name ' *.rst.txt' ) ; do
121+ for filename in $( find docs/_sources/beginner docs/_sources/intermediate docs/_sources/advanced docs/_sources/recipes -name ' *.rst.txt' ) ; do
112122 file_basename=$( basename $filename .rst.txt)
113123 if [[ ! " ${FILES_TO_RUN[@]} " =~ " ${file_basename} " ]]; then
114124 rm $filename
115125 fi
116126 done
117- for filename in $( find docs/.doctrees/beginner docs/.doctrees/intermediate docs/.doctrees/advanced -name ' *.doctree' ) ; do
127+ for filename in $( find docs/.doctrees/beginner docs/.doctrees/intermediate docs/.doctrees/advanced docs/.doctrees/recipes -name ' *.doctree' ) ; do
118128 file_basename=$( basename $filename .doctree)
119129 if [[ ! " ${FILES_TO_RUN[@]} " =~ " ${file_basename} " ]]; then
120130 rm $filename
0 commit comments