Skip to content

Commit

Permalink
Update build script and test
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmezzetti committed Dec 3, 2024
1 parent b05abd2 commit 92489ac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
1 change: 0 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ jobs:
run: |
echo "OMP_NUM_THREADS=1" >> $GITHUB_ENV
echo "PYTORCH_MPS_DISABLE=1" >> $GITHUB_ENV
echo "PYTORCH_MPS_HIGH_WATERMARK_RATIO=0.0" >> $GITHUB_ENV
echo "LLAMA_NO_METAL=1" >> $GITHUB_ENV
echo "TIKA_STARTUP_SLEEP=30" >> $GITHUB_ENV
echo "TIKA_STARTUP_MAX_RETRY=10" >> $GITHUB_ENV
Expand Down
7 changes: 2 additions & 5 deletions test/python/testpipeline/testdata/testtextractor.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@
Textractor module tests
"""

import platform
import unittest

import torch

from txtai.pipeline import Textractor

# pylint: disable = C0411
Expand Down Expand Up @@ -51,14 +50,12 @@ def testDefault(self):
# Check number of sections is as expected
self.assertEqual(len(sections), 2)

@unittest.skipIf(platform.system() == "Darwin", "Docling skipped on macOS to avoid MPS issues")
def testDocling(self):
"""
Test docling backend
"""

# Set default device to CPU
torch.set_default_device("cpu")

textractor = Textractor(backend="docling")

# Extract text and check for Markdown formatting
Expand Down

0 comments on commit 92489ac

Please sign in to comment.