Skip to content

armgit / txtai

Public Imported from GitHub
0

💡 All-in-one AI framework for semantic search, LLM orchestration and language model workflows

Skip test on Windows due to GitHub Actions out of memory error

davidmezzetti88e0a9e84d20
diff --git a/test/python/testpipeline/testtexttospeech.py b/test/python/testpipeline/testtexttospeech.py
index e3fd249f..04167051 100644
--- a/test/python/testpipeline/testtexttospeech.py
+++ b/test/python/testpipeline/testtexttospeech.py
@@ -2,6 +2,7 @@
TextToSpeech module tests
"""
+import os
import unittest
from unittest.mock import patch
@@ -14,6 +15,7 @@ class TestTextToSpeech(unittest.TestCase):
TextToSpeech tests.
"""
+ @unittest.skipIf(os.name == "nt", "testTextToSpeech skipped on Windows")
def testTextToSpeech(self):
"""
Test generating speech for text
@@ -24,6 +26,7 @@ class TestTextToSpeech(unittest.TestCase):
# Check that data is generated
self.assertGreater(len(tts("This is a test")), 0)
+ @unittest.skipIf(os.name == "nt", "testProviders skipped on Windows")
@patch("onnxruntime.get_available_providers")
@patch("torch.cuda.is_available")
def testProviders(self, cuda, providers):
diff --git a/test/python/testworkflow.py b/test/python/testworkflow.py
index 486941b5..874aa51c 100644
--- a/test/python/testworkflow.py
+++ b/test/python/testworkflow.py
@@ -73,7 +73,6 @@ class TestWorkflow(unittest.TestCase):
- transform
"""
- @unittest.skipIf(os.name == "nt", "testBaseWorkflow skipped on Windows")
def testBaseWorkflow(self):
"""
Test a basic workflow