Skip to content
This repository has been archived by the owner on Feb 22, 2020. It is now read-only.

Commit

Permalink
ci(drone): remove pylint for faster ci
Browse files Browse the repository at this point in the history
  • Loading branch information
hanhxiao committed Jul 18, 2019
1 parent 51eafac commit 33a570b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down
4 changes: 2 additions & 2 deletions tests/test_euclidean_indexer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.