From 33a570b9ba1dc1fa35917e1462c55e2b6926dc1b Mon Sep 17 00:00:00 2001 From: hanhxiao Date: Thu, 18 Jul 2019 20:20:57 +0800 Subject: [PATCH] ci(drone): remove pylint for faster ci --- .drone.yml | 3 +-- tests/test_euclidean_indexer.py | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.drone.yml b/.drone.yml index cdac9984..42d9df38 100644 --- a/.drone.yml +++ b/.drone.yml @@ -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 diff --git a/tests/test_euclidean_indexer.py b/tests/test_euclidean_indexer.py index efa77a91..3bd2bdcc 100644 --- a/tests/test_euclidean_indexer.py +++ b/tests/test_euclidean_indexer.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)