Build not run when test configured for trigger and build for different trigger
Example PR: https://github.com/psss/fmf/pull/88

As @lbarcziova has proposed, we should check that we don't skip build in that case.
diff --git a/packit_service/worker/handlers/github_handlers.py b/packit_service/worker/handlers/github_handlers.py
index 51d11449..f726d63d 100644
--- a/packit_service/worker/handlers/github_handlers.py
+++ b/packit_service/worker/handlers/github_handlers.py
@@ -264,13 +264,15 @@ class AbstractCoprBuildHandler(JobHandler):
     def pre_check(self) -> bool:
         is_copr_build: Callable[[JobConfig], bool] = (
             lambda job: job.type == JobType.copr_build
+            and job.trigger == self.job_config.trigger
         )
 
         if self.job_config.type == JobType.tests and any(
             filter(is_copr_build, self.package_config.jobs)
         ):
             logger.info(
-                "Skipping build for testing. The COPR build is defined in the config."
+                "Skipping build for testing. The COPR build is defined "
+                "in the config with the same trigger."
             )
             return False
         return True
diff --git a/tests/integration/test_handler.py b/tests/integration/test_handler.py
index 265691c6..f26a5b94 100644
--- a/tests/integration/test_handler.py
+++ b/tests/integration/test_handler.py
@@ -111,3 +111,26 @@ def test_precheck_skip_tests_when_build_defined(github_pr_event):
         data=EventData.from_event_dict(github_pr_event.get_dict()),
     )
     assert not copr_build_handler.pre_check()
+
+
+def test_precheck_tests_and_build_with_different_trigger(github_pr_event):
+    copr_build_handler = AbstractCoprBuildHandler(
+        package_config=PackageConfig(
+            jobs=[
+                JobConfig(
+                    type=JobType.copr_build,
+                    trigger=JobConfigTriggerType.commit,
+                ),
+                JobConfig(
+                    type=JobType.tests,
+                    trigger=JobConfigTriggerType.pull_request,
+                ),
+            ]
+        ),
+        job_config=JobConfig(
+            type=JobType.tests,
+            trigger=JobConfigTriggerType.pull_request,
+        ),
+        data=EventData.from_event_dict(github_pr_event.get_dict()),
+    )
+    assert copr_build_handler.pre_check()
['packit_service/worker/handlers/github_handlers.py', 'tests/integration/test_handler.py']