Skip to content

Commit

Permalink
qa: Add extra actions in the Windows QA script
Browse files Browse the repository at this point in the history
  • Loading branch information
apyrgio committed Feb 15, 2024
1 parent 53c416e commit a6d8b08
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions dev_scripts/qa.py
Original file line number Diff line number Diff line change
Expand Up @@ -751,6 +751,15 @@ def install_poetry(self):
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"
Expand All @@ -759,6 +768,8 @@ def start(self):
self.install_docker()
self.install_poetry()
self.build_image()
self.run_tests()
self.build_dangerzone_exe()


class QALinux(QABase):
Expand Down

0 comments on commit a6d8b08

Please sign in to comment.