Skip to content

Commit

Permalink
Issue #26 try and get ci tests working on ubuntu
Browse files Browse the repository at this point in the history
  • Loading branch information
thompson318 committed May 3, 2023
1 parent aa450bc commit 47ce3cd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ jobs:
export DISPLAY=":1"
sudo Xvfb :1 -screen 0 1024x768x24 </dev/null &
export QT_DEBUG_PLUGINS=0
export LD_LIBRARY_PATH=$pythonLocation"/lib/python${{ matrix.python-version }}/site-packages/PySide6/Qt/plugins/platforms"
coverage erase
coverage run -a --source ./snappysonic -m pytest
Expand Down
9 changes: 7 additions & 2 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,10 @@
def setup_qt():

""" Create the QT application. """
app = QApplication([])
return app
# Check if already an instance of QApplication is present or not
if not QApplication.instance():
_pyside_qt_app = QApplication([])
else:
_pyside_qt_app = QApplication.instance()

return _pyside_qt_app

0 comments on commit 47ce3cd

Please sign in to comment.