From 89e8b998d6e2bfedf566cffbbc4a66eab0288f91 Mon Sep 17 00:00:00 2001 From: Alex Pyrgiotis Date: Mon, 6 Feb 2023 17:08:52 +0200 Subject: [PATCH] ci: Add a test dependency Add libqt5gui5 as a test dependency in the 'convert-test-docs' step. This package brings several other Qt and graphics libraries, which are the ones that we actually require to run the tests *with PySide6*. Else, we encounter this error: ``` Traceback (most recent call last): File "/home/circleci/project/dangerzone/gui/__init__.py", line 19, in from PySide6 import QtCore, QtGui, QtWidgets ImportError: libEGL.so.1: cannot open shared object file: No such file or directory ``` Note that the same package is not required when importing PySide2.QtGui, which is why we hadn't encountered this issue before. Also, in the rest of our environments, we explicitly install libqt5gui5, in order to run the Dangerzone GUI. --- .circleci/config.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index fd792c1..4fe2604 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -155,6 +155,10 @@ jobs: # This flag is important, due to an open upstream Poetry issue: # https://github.com/python-poetry/poetry/issues/7184 poetry install --no-ansi + - run: + name: Install test dependencies + command: | + sudo apt-get install -y libqt5gui5 --no-install-recommends - run: name: Prepare cache directory command: |