Skip to content

Commit 2966748

Browse files
committed
gh action update
1 parent 86c31dc commit 2966748

3 files changed

Lines changed: 20 additions & 14 deletions

File tree

.github/workflows/cibuildwheel.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ name: wheels
33
on: workflow_dispatch
44

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

1010
jobs:
1111
build_wheels:

devel/pytest/test_approx.py

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -128,11 +128,7 @@ def __test_genie_approx(metric='euclidean'):
128128
print("")
129129

130130

131-
def test_genie_approx():
132-
__test_genie_approx('euclidean')
133-
__test_genie_approx('manhattan')
134-
__test_genie_approx('cosine')
135-
__test_genie_approx('maximum')
131+
136132

137133

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

149145

150-
def test_sparse():
151-
__test_sparse('euclidean_sparse')
152-
__test_sparse('manhattan_sparse')
153-
__test_sparse('cosine_sparse')
154-
__test_sparse('cosine_sparse_fast')
155-
__test_sparse('chebyshev_sparse')
146+
156147

157148

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

168159

160+
161+
def test_genie_approx():
162+
__test_genie_approx('euclidean')
163+
__test_genie_approx('manhattan')
164+
__test_genie_approx('cosine')
165+
__test_genie_approx('maximum')
166+
167+
168+
def test_sparse():
169+
__test_sparse('euclidean_sparse')
170+
__test_sparse('manhattan_sparse')
171+
__test_sparse('cosine_sparse')
172+
__test_sparse('cosine_sparse_fast')
173+
__test_sparse('chebyshev_sparse')
174+
169175
def test_string():
170176
__test_string('leven')
171177

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ def build_extensions(self):
149149
"cython",
150150
"matplotlib",
151151
"scikit-learn",
152-
"nmslib"
152+
"nmslib" # nmslib does not build on 32bit Windows...
153153
],
154154
extras_require={
155155
"mlpack": ["mlpack"] # as of 2021-04-22, mlpack is not available for Python 3.9

0 commit comments

Comments
 (0)