Skip to content

Ensure that PY_VERSION environment variable is being used in all presubmits #13775

Open
@parthea

Description

@parthea

The PY_VERSION environment variable is only used when running the unit Github action. All presubmits should use PY_VERSION to explicitly specify the version of python used during testing.

if [ -z "${PY_VERSION}" ]; then
echo "missing PY_VERSION env var"
exit 1
fi

unit)
case ${PY_VERSION} in
"3.7")
nox -s unit-3.7
retval=$?
;;
"3.8")
nox -s unit-3.8
retval=$?
;;
"3.9")
nox -s unit-3.9
retval=$?
;;
"3.10")
nox -s unit-3.10
retval=$?
;;
"3.11")
nox -s unit-3.11
retval=$?
;;
"3.12")
nox -s unit-3.12
retval=$?
;;
"3.13")
nox -s unit-3.13
retval=$?
;;

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: cleanupAn internal cleanup or hygiene concern.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions