Files
model_garden/.cloud-build/CheckPythonVersion.py
T
Morgan DuandGitHub 64a778c5e7 Copy Cloudbuild and GithubActions setup from ai-platform-samples for notebook testing (#1)
* copy github actions

* copy Cloud Build

* add Dockerfile for cloud build

* add notebook test_folders.txt to .cloud-build and update the file path
2021-07-20 10:37:18 -07:00

15 lines
313 B
Python

import sys
MINIMUM_MAJOR_VERSION = 3
MINIMUM_MINOR_VERSION = 3
if (
sys.version_info.major < MINIMUM_MAJOR_VERSION
and sys.version_info.minor < MINIMUM_MINOR_VERSION
):
print("Error: Python version less than 3.5")
exit(1)
else:
print(f"Python version acceptable: {sys.version}")
exit(0)