Skip to content

armgit / txtai

Public Imported from GitHub
0

πŸ’‘ All-in-one AI framework for semantic search, LLM orchestration and language model workflows

Pin fasteners version in build workflow to workaround deadlocking issue for word vector unit tests

davidmezzettieda1cabcdc90
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 721b06bb..a09e58e7 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -35,7 +35,7 @@ jobs:
- name: Build
run: |
- pip install -U pip wheel coverage coveralls
+ pip install -U pip wheel coverage coveralls fasteners==0.17.2
pip install .[all]
python -c "import nltk; nltk.download('punkt')"
python --version
diff --git a/docs/workflow/schedule.md b/docs/workflow/schedule.md
index b935faeb..33937769 100644
--- a/docs/workflow/schedule.md
+++ b/docs/workflow/schedule.md
@@ -15,7 +15,7 @@ Below are a couple example cron expressions.
# | | β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€ day of the month (1 - 31)
# | | | β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€ month (1 - 12)
# | | | | β”Œβ”€β”€β”€β”€β”€β”€β”€ day of the week (0 - 6)
-# | | | | | β”Œβ”€β”€β”€β”€β”€ seconds (0 - 59)
+# | | | | | β”Œβ”€β”€β”€β”€β”€ second (0 - 59)
# | | | | | |
* * * * * * # Run every second
0/5 * * * * # Run every 5 minutes
diff --git a/test/python/testembeddings.py b/test/python/testembeddings.py
index 0923bc4d..be047ee1 100644
--- a/test/python/testembeddings.py
+++ b/test/python/testembeddings.py
@@ -5,7 +5,6 @@ Embeddings module tests
import contextlib
import io
import os
-import platform
import tempfile
import unittest
@@ -156,7 +155,6 @@ class TestEmbeddings(unittest.TestCase):
self.assertEqual(uid, 0)
- @unittest.skipIf(platform.system() == "Darwin", "Word vector embeddings tests skipped on macOS")
def testWords(self):
"""
Test embeddings backed by word vectors
diff --git a/test/python/testvectors/testwordvectors.py b/test/python/testvectors/testwordvectors.py
index cc4d7747..de3128db 100644
--- a/test/python/testvectors/testwordvectors.py
+++ b/test/python/testvectors/testwordvectors.py
@@ -3,7 +3,6 @@ Vectors module tests
"""
import os
-import platform
import tempfile
import unittest
@@ -46,7 +45,6 @@ class TestWordVectors(unittest.TestCase):
self.assertTrue(model.initialized)
- @unittest.skipIf(platform.system() == "Darwin", "Word vector embeddings tests skipped on macOS")
def testIndex(self):
"""
Test word vectors indexing