You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# don't fail "hard" if it's known failures that we cannot account for (yet)
125
+
# pytype doesn't support 3.11+ yet
126
+
if [[ "${INPUTS_LINTER}" == "pytype" -a "${INPUTS_PYTHON_VERSION}" =~ ^3\.(1[1-9]|[2-9][0-9]$ ]]; then
127
+
echo "::warning::pytype failed to run for Python ${INPUTS_PYTHON_VERSION}; this is likely due to pytype not yet supporting Python ${INPUTS_PYTHON_VERSION}"
128
+
exit 0
129
+
# fixit>1 doesn't work for 3.7
130
+
elif [[ "${INPUTS_LINTER}" == "fixit" -a "${INPUTS_PYTHON_VERSION}" == "3.7" ]]; then
131
+
echo "::warning::fixit failed to run for Python ${INPUTS_PYTHON_VERSION}; this is likely due to fixit not supporting Python ${INPUTS_PYTHON_VERSION}"
132
+
exit 0
133
+
fi
134
+
135
+
echo "::error::${INPUTS_LINTER} failed to run for Python ${INPUTS_PYTHON_VERSION}" && exit 1
136
+
fi
120
137
else
121
138
echo "::error::invalid linter ${INPUTS_LINTER}; choose one of ${linters[*]}"
0 commit comments