Skip to content

Commit

Permalink
gh action update
Browse files Browse the repository at this point in the history
  • Loading branch information
gagolews committed Apr 22, 2021
1 parent 86c31dc commit 2966748
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 14 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/cibuildwheel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ name: wheels
on: workflow_dispatch

env:
CIBW_SKIP: cp2* pp* cp35* cp36*
# nmslib does not build on 32bit Windows
CIBW_SKIP: cp2* pp* cp35* cp36* cp37-win32 cp38-win32 cp39-win32 cp39-win_amd64
CIBW_BEFORE_BUILD: pip install -r requirements.txt --upgrade
CIBW_ARCHS_WINDOWS: auto64

jobs:
build_wheels:
Expand Down
28 changes: 17 additions & 11 deletions devel/pytest/test_approx.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,11 +128,7 @@ def __test_genie_approx(metric='euclidean'):
print("")


def test_genie_approx():
__test_genie_approx('euclidean')
__test_genie_approx('manhattan')
__test_genie_approx('cosine')
__test_genie_approx('maximum')



def __test_sparse(affinity='euclidean_sparse'):
Expand All @@ -147,12 +143,7 @@ def __test_sparse(affinity='euclidean_sparse'):
genieclust.Genie(affinity=affinity, exact=False).fit(X)


def test_sparse():
__test_sparse('euclidean_sparse')
__test_sparse('manhattan_sparse')
__test_sparse('cosine_sparse')
__test_sparse('cosine_sparse_fast')
__test_sparse('chebyshev_sparse')



def __test_string(affinity='leven'):
Expand All @@ -166,6 +157,21 @@ def __test_string(affinity='leven'):
genieclust.Genie(affinity=affinity, exact=False, cast_float32=False).fit(X)



def test_genie_approx():
__test_genie_approx('euclidean')
__test_genie_approx('manhattan')
__test_genie_approx('cosine')
__test_genie_approx('maximum')


def test_sparse():
__test_sparse('euclidean_sparse')
__test_sparse('manhattan_sparse')
__test_sparse('cosine_sparse')
__test_sparse('cosine_sparse_fast')
__test_sparse('chebyshev_sparse')

def test_string():
__test_string('leven')

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ def build_extensions(self):
"cython",
"matplotlib",
"scikit-learn",
"nmslib"
"nmslib" # nmslib does not build on 32bit Windows...
],
extras_require={
"mlpack": ["mlpack"] # as of 2021-04-22, mlpack is not available for Python 3.9
Expand Down

0 comments on commit 2966748

Please sign in to comment.