Skip to content

Commit

Permalink
[DEM-870] Mypy in travis (#46)
Browse files Browse the repository at this point in the history
* mypy added
* timeout notebooks adjusted
  • Loading branch information
QFer authored Apr 12, 2019
1 parent 540fcee commit a41a96c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
11 changes: 6 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,23 @@ matrix:
sudo: true
dist: xenial
install:
- pip install jupyter
- pip install matplotlib>=2.1
- pip install --upgrade mypy
- pip install --upgrade .[qiskit,projectq] coveralls
env:
- API_URL=https://staging.quantum-inspire.com
script:
- echo "running unit tests"
- coverage run --source="./src/quantuminspire" -m unittest discover -s src/tests -t src -v
- echo "running mypy"
- MYPYPATH=./src mypy --strict --ignore-missing-imports -p quantuminspire
- echo "running examples"
- python ./docs/example_projectq_entangle.py
- python ./docs/example_projectq_grover.py
- python ./docs/example_qiskit_entangle.py
- echo "running notebooks"
- jupyter nbconvert --to notebook --execute docs/example_projectq.ipynb
- jupyter nbconvert --to notebook --execute docs/grover_algorithm_qi.ipynb
- jupyter nbconvert --to notebook --execute docs/qi-performance-test.ipynb
- jupyter nbconvert --to notebook --execute --ExecutePreprocessor.timeout=300 docs/example_projectq.ipynb
- jupyter nbconvert --to notebook --execute --ExecutePreprocessor.timeout=300 docs/grover_algorithm_qi.ipynb
- jupyter nbconvert --to notebook --execute --ExecutePreprocessor.timeout=300 docs/qi-performance-test.ipynb
after_success:
- coveralls
deploy:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,6 @@ def get_long_description():
'License :: OSI Approved :: Apache Software License'],
license='Apache 2.0',
packages=['quantuminspire', 'quantuminspire.qiskit', 'quantuminspire.projectq'],
install_requires=['pytest>=3.3.1', 'coverage>=4.5.1',
install_requires=['pytest>=3.3.1', 'coverage>=4.5.1', 'matplotlib>=2.1',
'coreapi>=2.3.3', 'numpy', 'jupyter'],
extras_require={'qiskit': ["qiskit>=0.7.0"], 'projectq': ["projectq>=0.4"]})

0 comments on commit a41a96c

Please sign in to comment.