From a83863003e0e2261029882c2d2ec4a8e9f8bc2a9 Mon Sep 17 00:00:00 2001 From: Matej2 <11059438+matej2@users.noreply.github.com> Date: Fri, 12 Jun 2026 14:32:05 +0200 Subject: [PATCH 1/3] Updated readme --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 89db00d..b4847db 100644 --- a/README.md +++ b/README.md @@ -61,4 +61,6 @@ Run the tests: In order to get test coverage, run the following command and then open `htmlcov/index.html` - coverage run -m unittest discover && coverage html \ No newline at end of file + coverage run -m unittest discover && coverage html + +test \ No newline at end of file From bc1321e1765a5b2dc22ea4bf6097847091708ec9 Mon Sep 17 00:00:00 2001 From: Matej2 <11059438+matej2@users.noreply.github.com> Date: Fri, 12 Jun 2026 14:33:54 +0200 Subject: [PATCH 2/3] Updated workflow triggers --- .github/workflows/ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 789deab..7444fd1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,6 +3,8 @@ name: Run tests when PR is created on: issue_comment: types: [created] + pull_request: + types: [opened,reopened] jobs: run-tests: From 6894b3fb83085501df72afa402c961c329ec4341 Mon Sep 17 00:00:00 2001 From: Matej2 <11059438+matej2@users.noreply.github.com> Date: Fri, 12 Jun 2026 14:44:43 +0200 Subject: [PATCH 3/3] Install dependency, set DISPLAY env --- .github/workflows/ci.yml | 2 +- test/test_UILayoutHelper.py | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7444fd1..60ba7e2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,7 +27,7 @@ jobs: - name: Install dependencies with apt get run: | - sudo apt-get install -y libdbus-1-dev libdbus-glib-1-dev + sudo apt-get install -y libdbus-1-dev libdbus-glib-1-dev xvfb - name: Install Pipenv run: | diff --git a/test/test_UILayoutHelper.py b/test/test_UILayoutHelper.py index 96f84ad..ed4c5e6 100644 --- a/test/test_UILayoutHelper.py +++ b/test/test_UILayoutHelper.py @@ -1,3 +1,4 @@ +import os import unittest from unittest.mock import Mock, patch @@ -8,6 +9,10 @@ class TestUILayoutHelper(unittest.TestCase): def setUp(self): + if os.name != "nt" and os.getenv("GITHUB_ACTIONS"): + os.system('Xvfb :1 -screen 0 1600x1200x16 &') + os.environ["DISPLAY"] = ":1.0" + self.root = CTk() config_manager = Mock()