From 3cb24d0de241613615b9aa90dcdb25a8d7b19e3a Mon Sep 17 00:00:00 2001 From: "C.A.M. Gerlach" Date: Sat, 17 Dec 2022 02:27:14 -0600 Subject: [PATCH] Avoid conda qt 5.15 compat issue w/pyqt 5.15 & Python 3.11 on CI --- .github/workflows/test.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.sh b/.github/workflows/test.sh index cce935a8..7b9cf762 100755 --- a/.github/workflows/test.sh +++ b/.github/workflows/test.sh @@ -17,7 +17,12 @@ conda activate test-env if [ "$USE_CONDA" = "Yes" ]; then if [ "${1}" = "pyqt5" ]; then - conda install -q qt=${PYQT5_QT_VERSION} pyqt=${PYQT5_VERSION} + if [ "${PYQT5_VERSION:0:4}" = "5.15" ]; then + # Must specify versions individually with PyQt 5.15 to avoid compat issues with Python 3.11 + conda install -q qt-main=${PYQT5_QT_VERSION} qt-webengine=${PYQT5_QT_VERSION} pyqt=${PYQT5_VERSION} + else + conda install -q qt=${PYQT5_QT_VERSION} pyqt=${PYQT5_VERSION} + fi elif [ "${1}" = "pyside2" ]; then conda install -q qt=${PYSIDE2_QT_VERSION} pyside2=${PYSIDE2_VERSION} elif [ "${1}" = "pyside6" ]; then