Skip to content

Commit 01516bd

Browse files
committed
Don't auto-update the Python version in conda GHA tests
1 parent ef9634b commit 01516bd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/test_branches.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ jobs:
373373
fi
374374
# Note: this will fail the build if any installation fails (or
375375
# possibly if it outputs messages to stderr)
376-
conda install --update-deps -q -y $CONDA_DEPENDENCIES
376+
conda install --update-deps -q -y python="${{matrix.python}}" $CONDA_DEPENDENCIES
377377
if test -z "${{matrix.slim}}"; then
378378
# xpress.init() (xpress 9.5.1 from conda) hangs indefinitely
379379
# on GHA/Windows under Python 3.10 and 3.11. Exclude that

.github/workflows/test_pr_and_main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ jobs:
425425
fi
426426
# Note: this will fail the build if any installation fails (or
427427
# possibly if it outputs messages to stderr)
428-
conda install --update-deps -q -y $CONDA_DEPENDENCIES
428+
conda install --update-deps -q -y python="${{matrix.python}}" $CONDA_DEPENDENCIES
429429
if test -z "${{matrix.slim}}"; then
430430
# xpress.init() (xpress 9.5.1 from conda) hangs indefinitely
431431
# on GHA/Windows under Python 3.10 and 3.11. Exclude that

0 commit comments

Comments
 (0)