@@ -127,15 +127,21 @@ runs:
127
127
CONDA_ENV="${RUNNER_TEMP}/conda_environment_${GITHUB_RUN_ID}"
128
128
export CONDA_EXTRA_PARAM=""
129
129
130
- if [[ ( "${PYTHON_VERSION:-}" == *t || "${PYTHON_VERSION:-}" == 3.14* ) && "$(uname)" == Darwin ]]; 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
130
+ if [[ "${PYTHON_VERSION:-}" == *t || "${PYTHON_VERSION:-}" == 3.14* ]]; then
131
+
132
+ # downgrade conda version for python 3.13t, 3.14t, 3.14 install.
133
+ # TODO: remove this once python 3.13t, 3.14t, 3.14 is fully supported on conda
133
134
# Please see : https://github.com/conda/conda/issues/14554
134
- conda install -y python=3.9
135
- if [[ -n "$(conda list | grep conda-anaconda-telemetry)" ]]; then
136
- conda uninstall -y conda-anaconda-telemetry conda-anaconda-tos
135
+ if [[ "$(uname)" == Darwin ]]; then
136
+ # required to be able to downgrade on MacOS arm64
137
+ conda install -y python=3.9
138
+ if [[ -n "$(conda list | grep conda-anaconda-telemetry)" ]]; then
139
+ conda uninstall -y conda-anaconda-telemetry conda-anaconda-tos
140
+ fi
141
+ conda install -y conda=24.7.1 conda-libmamba-solver=24.1.0
142
+ else
143
+ conda install -y conda=24.7.1
137
144
fi
138
- conda install -y conda=24.7.1 conda-libmamba-solver=24.1.0
139
145
fi
140
146
141
147
# shellcheck disable=SC2153
0 commit comments