Skip to content

Commit

Permalink
CI: Add Pyside6
Browse files Browse the repository at this point in the history
  • Loading branch information
jschueller committed Oct 12, 2021
1 parent 9f47bf0 commit d022ed4
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ jobs:
- name: Install System Packages
run: |
sudo apt update
sudo apt install libpulse-dev
sudo apt install libegl1-mesa
sudo apt install libpulse-dev libegl1-mesa libopengl0
- name: Install Conda
uses: conda-incubator/setup-miniconda@v2
with:
Expand All @@ -44,6 +43,9 @@ jobs:
- name: Test PySide2
shell: bash -l {0}
run: xvfb-run --auto-servernum bash -l ./.github/workflows/test-pyside2.sh
- name: Test PySide6
shell: bash -l {0}
run: xvfb-run --auto-servernum bash -l ./.github/workflows/test-pyside6.sh
- name: Upload coverage
if: matrix.PYTHON_VERSION == '3.8'
shell: bash -l {0}
Expand Down Expand Up @@ -79,6 +81,9 @@ jobs:
- name: Test PySide2
shell: bash -l {0}
run: bash -l ./.github/workflows/test-pyside2.sh
- name: Test PySide6
shell: bash -l {0}
run: bash -l ./.github/workflows/test-pyside6.sh

windows:
name: Windows Py${{ matrix.PYTHON_VERSION }} conda=${{ matrix.USE_CONDA }}
Expand Down Expand Up @@ -107,3 +112,6 @@ jobs:
- name: Test PySide2
shell: bash -l {0}
run: bash -l ./.github/workflows/test-pyside2.sh
- name: Test PySide6
shell: bash -l {0}
run: bash -l ./.github/workflows/test-pyside6.sh
23 changes: 23 additions & 0 deletions .github/workflows/test-pyside6.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/bin/bash -ex

# Create conda environment for this test
conda create -n test-pyside6
conda activate test-pyside6

if [ "$USE_CONDA" = "Yes" ]; then
# There are no conda packages for PySide6
exit 0
elif [ "$PYTHON_VERSION" == "2.7" ]; then
# There is no wheel for PySide6 on Python 2.7
exit 0
else
# Simple solution to avoid failures with the Qt3D modules
conda install coveralls mock pytest pytest-cov python="$PYTHON_VERSION" -c conda-forge -q
pip install -q pyside6==6.2.0
fi

# Install package
python -m pip install -e .

# Run tests
python qtpy/tests/runtests.py

0 comments on commit d022ed4

Please sign in to comment.