@@ -127,6 +127,22 @@ runs:
127127 CONDA_ENV="${RUNNER_TEMP}/conda_environment_${GITHUB_RUN_ID}"
128128 export CONDA_EXTRA_PARAM=""
129129
130+ if [[ "${PYTHON_VERSION:-}" == *t ]]; then
131+ # downgrade conda version for python 3.13t/3.14t install.
132+ # TODO: remove this once python 3.13t/3.14t is fully supported on conda
133+ # Please see : https://github.com/conda/conda/issues/14554
134+ if [[ "$(uname)" == Darwin ]]; then
135+ # required to be able to downgrade on MacOS arm64
136+ conda install -y python=3.9
137+ if [[ -n "$(conda list | grep conda-anaconda-telemetry)" ]]; then
138+ conda uninstall -y conda-anaconda-telemetry conda-anaconda-tos
139+ fi
140+ conda install -y conda=24.7.1 conda-libmamba-solver=24.1.0
141+ else
142+ conda install -y conda=24.7.1
143+ fi
144+ fi
145+
130146 # shellcheck disable=SC2153
131147 case $PYTHON_VERSION in
132148 3.14t)
@@ -143,22 +159,6 @@ runs:
143159 ;;
144160 esac
145161
146- if [[ "${PYTHON_VERSION:-}" == *t ]]; then
147- # downgrade conda version for python 3.13t install.
148- # TODO: remove this once python 3.13t is fully supported on conda
149- # Please see : https://github.com/conda/conda/issues/14554
150- if [[ "$(uname)" == Darwin ]]; then
151- # required to be able to downgrade on MacOS arm64
152- conda install -y python=3.9
153- if [[ -n "$(conda list | grep conda-anaconda-telemetry)" ]]; then
154- conda uninstall -y conda-anaconda-telemetry conda-anaconda-tos
155- fi
156- conda install -y conda=24.7.1 conda-libmamba-solver=24.1.0
157- else
158- conda install -y conda=24.7.1
159- fi
160- fi
161-
162162 conda create \
163163 --yes --quiet \
164164 --prefix "${CONDA_ENV}" \
0 commit comments