Skip to content

Commit 5188da8

Browse files
Merge pull request #24 from EightfoldAI/sbijarnia/remove_3_11
Remove 3.11 and make 3.13 as default python version
2 parents 70e228a + 3a63989 commit 5188da8

1 file changed

Lines changed: 16 additions & 6 deletions

File tree

entrypoint.sh

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,15 @@ echo $comment_body
5757
echo $number
5858
echo $labels
5959

60-
already_needs_ci_alt=false
6160
already_needs_ci=false
6261
already_shipit=false
6362
already_verified=false
6463
already_verified_alt=false
6564
already_needs_ci_lite=false
65+
already_needs_ci_alt=false
6666
already_needs_ci_alt_lite=false
6767
alt_python_version=":3.13"
68+
curr_python_version=":3.13"
6869

6970
if [[ "$action" != "created" ]]; then
7071
echo This action should only be called when a comment is created on a pull request
@@ -99,7 +100,9 @@ if [[ $comment_body == "shipit" || $comment_body == ":shipit:" || $comment_body
99100
add_label "needs_ci"
100101
fi
101102
if [[ "$already_verified_alt" == false && "$already_needs_ci_alt" == false ]]; then
102-
add_label "needs_ci${alt_python_version}"
103+
if [[ "$curr_python_version" != "$alt_python_version" ]]; then
104+
add_label "needs_ci${alt_python_version}"
105+
fi
103106
fi
104107
if [[ "$already_shipit" == false ]]; then
105108
add_label "shipit"
@@ -128,7 +131,9 @@ if [[ $comment_body == "needs_ci" ]]; then
128131
add_label "needs_ci"
129132
fi
130133
if [[ "$already_needs_ci_alt" == false ]]; then
131-
add_label "needs_ci${alt_python_version}"
134+
if [[ "$curr_python_version" != "$alt_python_version" ]]; then
135+
add_label "needs_ci${alt_python_version}"
136+
fi
132137
fi
133138
fi
134139

@@ -166,7 +171,9 @@ if [[ $comment_body == "needs_ci${alt_python_version}" ]]; then
166171
esac
167172
done
168173
if [[ "$already_needs_ci_alt" == false ]]; then
169-
add_label "needs_ci${alt_python_version}"
174+
if [[ "$curr_python_version" != "$alt_python_version" ]]; then
175+
add_label "needs_ci${alt_python_version}"
176+
fi
170177
fi
171178
fi
172179

@@ -185,7 +192,9 @@ if [[ $comment_body == "needs_ci${alt_python_version}:lite" ]]; then
185192
esac
186193
done
187194
if [[ "$already_needs_ci_alt_lite" == false ]]; then
188-
add_label "needs_ci${alt_python_version}:lite"
195+
if [[ "$curr_python_version" != "$alt_python_version" ]]; then
196+
add_label "needs_ci${alt_python_version}:lite"
197+
fi
189198
fi
190199
fi
191200

@@ -194,6 +203,7 @@ fi
194203
already_needs_sandbox=false
195204
already_needs_alternate_version_sandbox=false
196205
alternate_python_version="3.13"
206+
current_python_version="3.13"
197207

198208
if [[ $comment_body =~ ^needs_sandbox(:${alternate_python_version})(:(eu|gov|ca|uae|wu))?(:(dev|([0-9]+)(\.([0-9]+)?)?))?(:(([a-zA-Z0-9,]+)))?([ \t]*)?$ ]]; then
199209
for label in $labels; do
@@ -221,7 +231,7 @@ if [[ $comment_body =~ ^needs_sandbox(:${alternate_python_version})(:(eu|gov|ca|
221231
;;
222232
esac
223233
done
224-
if [[ "$already_needs_sandbox" == false ]]; then
234+
if [[ "$already_needs_sandbox" == false && "$current_python_version" != "$alternate_python_version" ]]; then
225235
if [[ $comment_body =~ needs_sandbox:${alternate_python_version}:eu ]]; then
226236
add_label "sandbox:${alternate_python_version} :eu:"
227237
elif [[ $comment_body =~ needs_sandbox:${alternate_python_version}:ca ]]; then

0 commit comments

Comments
 (0)