Skip to content

Commit

Permalink
Merge pull request mchaput#18 from ZeroCool940711/main
Browse files Browse the repository at this point in the history
Fixed several errors and added support for the Sweep AI and Codecov bots.
  • Loading branch information
ZeroCool940711 authored Jan 3, 2024
2 parents 67bcb6c + 80cc131 commit f8e9a1c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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},

Expand Down
7 changes: 4 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
[tox]
envlist = py27, py33, py34, py35, py36, py37
envlist = py27, py38, py39, py310, py311, py312

[testenv]
deps =
pytest
pytest-pep8
pytest
pytest-pep8
jieba
commands = py.test -s {posargs} tests

0 comments on commit f8e9a1c

Please sign in to comment.