Skip to content

Commit

Permalink
Fix a few minor issues with overhauled CI config
Browse files Browse the repository at this point in the history
Co-authored-by: Carlos Cordoba <ccordoba12@gmail.com>
  • Loading branch information
CAM-Gerlach and ccordoba12 authored Dec 18, 2022
1 parent 38da4d0 commit 1b44776
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
- python-version: '3.11'
pyqt5-version: '5.15' # Python 3.11 needs 5.15+
skip-pyside2: true # Pyside2 doesn't support Python 3.11+ (and probably never will)
pyside6-version: '6.4' # Python 3.11 needs 5.4+
pyside6-version: '6.4' # Python 3.11 needs 6.4+
- use-conda: 'Yes'
skip-pyqt6: true # No PyQt6 conda packages yet
pyside6-version: '6.4' # Conda only has 6.4+
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,13 @@ conda remove -q -n test-env --all || true
# Create and activate conda environment for this test
BINDING=$(echo "$1" | tr '[:lower:]' '[:upper:]')
QT_VERSION_VAR=${BINDING}_QT_VERSION

# pytest-qt >=4 doesn't support Qt <=5.9
if [ "${!QT_VERSION_VAR:0:3}" = "5.9" ]; then PYTESTQT_VERSION="=3.3.0"; PYTEST_VERSION=">=6,!=7.0.0,!=7.0.1,<7.2.0"; fi
if [ "${!QT_VERSION_VAR:0:3}" = "5.9" ]; then
PYTESTQT_VERSION="=3.3.0"
PYTEST_VERSION=">=6,!=7.0.0,!=7.0.1,<7.2.0"
fi

conda create -q -n test-env python=${PYTHON_VERSION} pytest${PYTEST_VERSION:-">=6,!=7.0.0,!=7.0.1"} "pytest-cov>=3.0.0" pytest-qt${PYTESTQT_VERSION:-}
conda activate test-env

Expand Down

0 comments on commit 1b44776

Please sign in to comment.