qa: Add extra actions in the Windows QA script

This commit is contained in:
Alex Pyrgiotis 2024-02-15 12:26:00 +02:00
parent fd241e5964
commit 531a5bc96f
No known key found for this signature in database
GPG key ID: B6C15EBA0357C9AA

View file

@ -751,6 +751,15 @@ class QAWindows(QABase):
def build_image(self):
self.run("python", r".\install\common\build-image.py")
@QABase.task("Run tests", ref="REF_BUILD", auto=True)
def run_tests(self):
# NOTE: Windows does not have Makefile by default.
self.run("poetry", "run", "pytest", "-v", "--ignore", r"tests\test_large_set.py")
@QABase.task("Build Dangerzone .exe", ref="REF_BUILD", auto=True)
def build_dangerzone_exe(self):
self.run("poetry", "run", "python", r".\setup-windows.py", "build")
@classmethod
def get_id(cls):
return "windows"
@ -759,6 +768,8 @@ class QAWindows(QABase):
self.install_docker()
self.install_poetry()
self.build_image()
self.run_tests()
self.build_dangerzone_exe()
class QALinux(QABase):