From 0afe6ab9d9134d9d8e550c9546b9b73193b071d8 Mon Sep 17 00:00:00 2001 From: xxyzz Date: Wed, 6 Nov 2024 21:09:05 +0800 Subject: [PATCH] Fix test error in macOS action the code use Homebrew python by default which is 3.13 and can't build spacy's dependencies --- tests/test.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/test.py b/tests/test.py index bab6590..726d0f5 100644 --- a/tests/test.py +++ b/tests/test.py @@ -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 @@ -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():