Skip to content
Permalink
Browse files

ci(drone): remove pylint for faster ci

  • Loading branch information...
hanxiao committed Jul 18, 2019
1 parent 51eafac commit 33a570b9ba1dc1fa35917e1462c55e2b6926dc1b
Showing with 3 additions and 4 deletions.
  1. +1 −2 .drone.yml
  2. +2 −2 tests/test_euclidean_indexer.py
@@ -33,13 +33,12 @@ steps:
- cat /proc/cpuinfo | grep flags
- "python -c 'import tensorflow as tf; print(tf.__version__); a=tf.constant(1, tf.int32); print(tf.Session().run(a))'"

- name: pip-install gnes
- name: install gnes and unit test
image: gnes/ci-base
environment:
GNES_ENV_SET: orange-ci
commands:
- pip install -e .[all]
- pylint gnes/**/*.py --exit-zero
- python -m unittest tests/*.py


@@ -39,9 +39,9 @@ def test_query(self):
def test_dump_load(self):
with FaissIndexer(20, 'HNSW32', self.dump_path) as tmp:
tmp.add(self.toy_label, self.toy_query, [1.] * len(self.toy_label))
tmp.dump(self.dump_path)
tmp.dump()

with FaissIndexer.load(self.dump_path) as fd:
with FaissIndexer.load(tmp.dump_full_path) as fd:
ret = fd.query(self.sub_query, top_k=2)
self.assertEqual(len(ret), self.sub_query.shape[0])
self.assertEqual(len(ret[0]), 2)

0 comments on commit 33a570b

Please sign in to comment.
You can’t perform that action at this time.