Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add additional Python versions to CI #73

Merged
merged 5 commits into from
May 9, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
dist: xenial
language: python
python:
- "3.5"
- "3.6"
- "3.7"
before_install:
- sudo apt-get install pandoc
install:
- pip install -r requirements/requirements_all.txt
- python -m spacy download en_core_web_md
script:
- flake8 alibi
- mypy alibi
- pytest
- travis_wait pytest
- make build_pypi
- make build_docs
4 changes: 2 additions & 2 deletions alibi/explainers/tests/test_cem.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ def test_cem():

assert not cem.model
if cem.best_attack:
assert list(explanation.keys()) == ['X', 'X_pred', 'PN', 'PN_pred', 'grads_graph', 'grads_num']
assert set(explanation.keys()) == set(['X', 'X_pred', 'PN', 'PN_pred', 'grads_graph', 'grads_num'])
assert (explanation['X'] != explanation['PN']).astype(int).sum() > 0
assert explanation['X_pred'] != explanation['PN_pred']
assert explanation['grads_graph'].shape == explanation['grads_num'].shape
else:
assert list(explanation.keys()) == ['X', 'X_pred']
assert set(explanation.keys()) == set(['X', 'X_pred'])