Skip to content

Commit

Permalink
re-enable tests, increase tolerance
Browse files Browse the repository at this point in the history
  • Loading branch information
mpenkov committed Mar 18, 2022
1 parent 2ca00ae commit a3c909f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/build-wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -217,8 +217,12 @@ jobs:
# This part relies on the wheel containing tests and required data.
# If we remove that from the wheel, we'll need to rewrite this step.
#
# pytest -rfxEXs --durations=20 --disable-warnings --showlocals --pyargs gensim
pytest -rfxEXs --durations=20 --disable-warnings --showlocals --pyargs gensim
#
# We need a separate testing step for windows because the command for
# activating the virtual environment is slightly different
#
- name: Install and Test Wheel (Windows)
if: matrix.os == 'windows-latest'
run: |
Expand All @@ -227,7 +231,7 @@ jobs:
pip install wheelhouse/*.whl
cd test_environment
python -c 'import gensim;print(gensim.__version__)'
# pytest -rfxEXs --durations=20 --disable-warnings --showlocals --pyargs gensim
pytest -rfxEXs --durations=20 --disable-warnings --showlocals --pyargs gensim
- name: Upload wheels to s3://gensim-wheels
#
Expand Down
2 changes: 1 addition & 1 deletion gensim/test/test_word2vec.py
Original file line number Diff line number Diff line change
Expand Up @@ -834,7 +834,7 @@ def test_parallel(self):
# the exact vectors and therefore similarities may differ, due to different thread collisions/randomization
# so let's test only for top10
neighbor_rank = [word for word, sim in sims].index(expected_neighbor)
self.assertLess(neighbor_rank, 2)
self.assertLess(neighbor_rank, 3)

def test_r_n_g(self):
"""Test word2vec results identical with identical RNG seed."""
Expand Down

0 comments on commit a3c909f

Please sign in to comment.