Set parent to QSequentialAnimationGroup in glow animation only when n… #36
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
name: Test | |
on: [ push ] | |
jobs: | |
gui_test: | |
strategy: | |
fail-fast: false | |
matrix: | |
pyqt: [ 'PyQt5', 'PyQt6', 'PySide2', 'PySide6' ] | |
os: [ ubuntu-20.04 ] | |
python-version: [ '3.7', '3.10' ] | |
include: | |
- python-version: '3.8' | |
pyqt: 'PyQt5' | |
os: ubuntu-20.04 | |
- python-version: '3.9' | |
pyqt: 'PyQt5' | |
os: ubuntu-20.04 | |
- python-version: '3.7' | |
pyqt: 'PyQt5' | |
os: macos-10.15 | |
- python-version: '3.7' | |
pyqt: 'PyQt5' | |
os: macos-11 | |
- python-version: '3.7' | |
pyqt: 'PyQt5' | |
os: macos-12 | |
- python-version: '3.10' | |
pyqt: 'PyQt6' | |
os: macos-12 | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v1 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- if: matrix.os == 'ubuntu-20.04' | |
name: Prepare GUI tests | |
run: | | |
sudo apt install libxkbcommon-x11-0 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-xinerama0 libxcb-xfixes0 x11-utils | |
/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -screen 0 1920x1200x24 -ac +extension GLX | |
sudo apt install -y libpulse-mainloop-glib0 libegl1-mesa-dev libgstreamer-plugins-base1.0-dev libgstreamer1.0-dev | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install pytest-xvfb | |
pip install -e .[test] | |
pip install ${{ matrix.pyqt }} | |
- name: Test with pytest | |
env: | |
DISPLAY: ':99.0' | |
run: | | |
./tst.sh | |
- if: matrix.pyqt == 'PyQt5' && matrix.python-version == '3.7' && matrix.os == 'ubuntu-20.04' | |
name: coverage | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
pip install coveralls | |
coveralls --service=github | |
qa: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v1 | |
with: | |
python-version: 3.7 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install flake8 | |
- name: Lint with flake8 | |
run: | | |
flake8 qtanim | |