Skip to content

Commit

Permalink
Uninstall Qt bindings before installing the selecting one
Browse files Browse the repository at this point in the history
  • Loading branch information
t20100 committed Jul 21, 2023
1 parent d27bb7a commit e607e57
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ jobs:
- name-suffix: "No GUI wheel"
os: windows-latest
python-version: '3.9'
BUILD_OPTION: --wheel
QT_BINDING:
BUILD_COMMAND: --wheel
QT_BINDING: PyQt5
RUN_TESTS_OPTIONS: --no-gui --low-mem
# No GUI tests on Windows

Expand Down Expand Up @@ -119,6 +119,10 @@ jobs:
pip install -r ci/requirements-pinned.txt;
fi
pip install --pre -r requirements.txt
pip uninstall -y PyQt5 PyQt6 PySide6
if [ "${{ matrix.QT_BINDING }}" == "PyQt5" ]; then
pip install --pre pyqt5;
fi
if [ "${{ matrix.QT_BINDING }}" == "PySide6" ]; then
pip install --pre pyside6;
fi
Expand Down
1 change: 1 addition & 0 deletions ci/appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ before_test:
- pip install %PIP_OPTIONS% -r requirements.txt

# Install selected Qt binding
- "pip uninstall -y PyQt5 PySide6 PyQt6"
- "pip install %PIP_OPTIONS% %QT_BINDING%"

# Install pytest
Expand Down

0 comments on commit e607e57

Please sign in to comment.