Skip to content

Commit

Permalink
Fix test error in macOS action
Browse files Browse the repository at this point in the history
the code use Homebrew python by default which is 3.13 and can't build
spacy's dependencies
  • Loading branch information
xxyzz committed Nov 6, 2024
1 parent 58b56d7 commit 0afe6ab
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import unittest
from itertools import zip_longest
from pathlib import Path
from shutil import which

from calibre.library import db
from calibre_plugins.worddumb.config import prefs
Expand All @@ -23,6 +24,7 @@ def setUpClass(cls):
prefs["minimal_x_ray_count"] = 1
prefs["gloss_lang"] = "en"
prefs["use_wiktionary_for_kindle"] = False
prefs["python_path"] = which("python3")

lib_db = db("~/Calibre Library").new_api
for book_id in lib_db.all_book_ids():
Expand Down

0 comments on commit 0afe6ab

Please sign in to comment.