-
-
Notifications
You must be signed in to change notification settings - Fork 151
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
259 additions
and
203 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,168 @@ | ||
name: Tests | ||
|
||
on: | ||
# This avoids having duplicate builds for a pull request | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
smoke: | ||
name: Linux smoke test Py${{ matrix.PYTHON_VERSION }} conda=yes | ||
runs-on: ubuntu-latest | ||
env: | ||
CI: True | ||
PYTHON_VERSION: ${{ matrix.PYTHON_VERSION }} | ||
USE_CONDA: 'Yes' | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
PYTHON_VERSION: ['3.5'] | ||
steps: | ||
- name: Checkout branch | ||
uses: actions/checkout@v1.2.0 | ||
- name: Install System Packages | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install libpulse-dev | ||
sudo apt-get install libegl1-mesa | ||
sudo apt-get install libqtwebkit4 | ||
- name: Install Conda | ||
uses: goanpeca/setup-miniconda@v1 | ||
with: | ||
activate-environment: '' | ||
auto-update-conda: true | ||
auto-activate-base: false | ||
- name: Test PyQt5 | ||
shell: bash -l {0} | ||
run: | | ||
eval "$(conda shell.bash hook)" | ||
xvfb-run --auto-servernum ./.github/workflows/test-pyqt5.sh | ||
- name: Test PySide2 | ||
shell: bash -l {0} | ||
run: xvfb-run --auto-servernum ./.github/workflows/test-pyside2.sh | ||
- name: Test PyQt4 | ||
shell: bash -l {0} | ||
run: xvfb-run --auto-servernum ./.github/workflows/test-pyqt4.sh | ||
- name: Test PySide | ||
shell: bash -l {0} | ||
run: xvfb-run --auto-servernum ./.github/workflows/test-pyside.sh | ||
- name: Upload coverage | ||
shell: bash -l {0} | ||
run: ./.github/workflows/coverage.sh | ||
|
||
linux: | ||
name: Linux Py${{ matrix.PYTHON_VERSION }} conda=${{ matrix.USE_CONDA }} | ||
needs: smoke | ||
runs-on: ubuntu-latest | ||
env: | ||
CI: True | ||
PYTHON_VERSION: ${{ matrix.PYTHON_VERSION }} | ||
USE_CONDA: ${{ matrix.USE_CONDA }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
PYTHON_VERSION: ['2.7', '3.6'] | ||
USE_CONDA: ['Yes', 'No'] | ||
steps: | ||
- name: Checkout branch | ||
uses: actions/checkout@v1.2.0 | ||
- name: Install System Packages | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install libpulse-dev | ||
sudo apt-get install libegl1-mesa | ||
sudo apt-get install libqtwebkit4 | ||
- name: Install Conda | ||
uses: goanpeca/setup-miniconda@v1 | ||
with: | ||
activate-environment: '' | ||
auto-update-conda: true | ||
auto-activate-base: false | ||
- name: Test PyQt5 | ||
shell: bash -l {0} | ||
run: | | ||
eval "$(conda shell.bash hook)" | ||
xvfb-run --auto-servernum ./.github/workflows/test-pyqt5.sh | ||
- name: Test PySide2 | ||
shell: bash -l {0} | ||
run: xvfb-run --auto-servernum ./.github/workflows/test-pyside2.sh | ||
- name: Test PyQt4 | ||
shell: bash -l {0} | ||
run: xvfb-run --auto-servernum ./.github/workflows/test-pyqt4.sh | ||
- name: Test PySide | ||
shell: bash -l {0} | ||
run: xvfb-run --auto-servernum ./.github/workflows/test-pyside.sh | ||
|
||
windows: | ||
name: Windows Py${{ matrix.PYTHON_VERSION }} conda=${{ matrix.USE_CONDA }} | ||
needs: smoke | ||
runs-on: windows-latest | ||
env: | ||
CI: True | ||
PYTHON_VERSION: ${{ matrix.PYTHON_VERSION }} | ||
USE_CONDA: ${{ matrix.USE_CONDA }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
PYTHON_VERSION: ['2.7', '3.5', '3.6'] | ||
USE_CONDA: ['Yes', 'No'] | ||
steps: | ||
- name: Checkout branch | ||
uses: actions/checkout@v1.2.0 | ||
- name: Install Conda | ||
uses: goanpeca/setup-miniconda@v1 | ||
with: | ||
activate-environment: '' | ||
auto-update-conda: true | ||
auto-activate-base: true | ||
- name: Test PyQt5 | ||
shell: bash -l {0} | ||
run: ./.github/workflows/test-pyqt5.sh | ||
- name: Test PySide2 | ||
shell: bash -l {0} | ||
run: ./.github/workflows/test-pyqt5.sh | ||
- name: Test PyQt4 | ||
shell: bash -l {0} | ||
run: ./.github/workflows/test-pyqt4.sh | ||
- name: Test PySide | ||
shell: bash -l {0} | ||
run: ./.github/workflows/test-pyside.sh | ||
|
||
macos: | ||
name: Mac Py${{ matrix.PYTHON_VERSION }} conda=${{ matrix.USE_CONDA }} | ||
needs: smoke | ||
runs-on: macos-latest | ||
env: | ||
CI: True | ||
PYTHON_VERSION: ${{ matrix.PYTHON_VERSION }} | ||
USE_CONDA: ${{ matrix.USE_CONDA }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
PYTHON_VERSION: ['2.7', '3.5', '3.6'] | ||
USE_CONDA: ['Yes', 'No'] | ||
steps: | ||
- name: Checkout branch | ||
uses: actions/checkout@v1.2.0 | ||
- name: Install Conda | ||
uses: goanpeca/setup-miniconda@v1 | ||
with: | ||
activate-environment: '' | ||
auto-update-conda: true | ||
auto-activate-base: false | ||
- name: Test PyQt5 | ||
shell: bash -l {0} | ||
run: ./.github/workflows/test-pyqt5.sh | ||
- name: Test PySide2 | ||
shell: bash -l {0} | ||
run: ./.github/workflows/test-pyside2.sh | ||
- name: Test PyQt4 | ||
shell: bash -l {0} | ||
run: ./.github/workflows/test-pyqt4.sh | ||
- name: Test PySide | ||
shell: bash -l {0} | ||
run: ./.github/workflows/test-pyside.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/bin/bash -ex | ||
|
||
eval "$(conda shell.bash hook)" | ||
|
||
# Create conda environment for this test | ||
conda create -n test-pyqt4 | ||
conda activate test-pyqt4 | ||
|
||
if [ "$USE_CONDA" = "No" ]; then | ||
conda install coveralls mock pytest pytest-cov python="$PYTHON_VERSION" -c conda-forge -q | ||
pip install pyqt==4 | ||
elif [ "$PYTHON_VERSION" = "3.6" ]; then | ||
exit 0 | ||
else | ||
conda install coveralls mock pytest pytest-cov python="$PYTHON_VERSION" -c anaconda -q | ||
conda install qt=4.* pyqt=4.* -c anaconda -q | ||
fi | ||
|
||
# Install package | ||
python setup.py develop | ||
|
||
# Run tests | ||
python qtpy/tests/runtests.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.