From 9b97d53a693d731dfd15c07bc566e836b50fc67b Mon Sep 17 00:00:00 2001 From: "sweep-ai[bot]" <128439645+sweep-ai[bot]@users.noreply.github.com> Date: Wed, 3 Jan 2024 16:58:42 +0000 Subject: [PATCH 1/3] feat: Updated tox.ini --- tox.ini | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tox.ini b/tox.ini index bf5bfd6d..eee3f901 100644 --- a/tox.ini +++ b/tox.ini @@ -3,6 +3,7 @@ envlist = py27, py33, py34, py35, py36, py37 [testenv] deps = - pytest - pytest-pep8 + pytest + pytest-pep8 + jieba commands = py.test -s {posargs} tests From 9ffcba8a79328f6f8793fa6e15b624ad5179d063 Mon Sep 17 00:00:00 2001 From: Alejandro Gil Date: Wed, 3 Jan 2024 10:30:12 -0700 Subject: [PATCH 2/3] Update test.yml --- .github/workflows/test.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a531d796..28893f78 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -22,3 +22,7 @@ jobs: python setup.py clean build install - name: Run test run: pytest + - name: Upload coverage reports to Codecov + uses: codecov/codecov-action@v3 + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} From 80cc1315bb0f8c361f6d2497f8b44f82c50daf0d Mon Sep 17 00:00:00 2001 From: Alejandro Gil Date: Wed, 3 Jan 2024 10:42:00 -0700 Subject: [PATCH 3/3] Fixing the jieba not found module error. --- setup.py | 2 +- tox.ini | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index d5accade..1d745041 100644 --- a/setup.py +++ b/setup.py @@ -45,7 +45,7 @@ def run_tests(self): url="http://bitbucket.org/mchaput/whoosh", zip_safe=True, - install_requires=['cached-property'], + install_requires=['cached-property', 'jieba'], tests_require=['pytest', 'jieba'], cmdclass={'test': PyTest}, diff --git a/tox.ini b/tox.ini index eee3f901..8506e83f 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = py27, py33, py34, py35, py36, py37 +envlist = py27, py38, py39, py310, py311, py312 [testenv] deps =