forked from cornellius-gp/gpytorch
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
55 lines (50 loc) · 1.75 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
language: python
branches:
only:
- master
python:
- "3.6"
env:
- PYTORCH_VERSION=master
- PYTORCH_VERSION=stable
- PYTORCH_VERSION=stable WITH_PYRO=true
- PYTORCH_VERSION=stable WITH_PYRO=true EXAMPLES=true
install:
- pip install numpy; pip install scipy; pip install scikit-learn;
- if [[ $PYTORCH_VERSION = "master" ]]; then
pip install --pre torch -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html;
python setup.py build develop;
else
pip install torch==1.6+cpu -f https://download.pytorch.org/whl/torch_stable.html;
fi
- if [[ $WITH_PYRO == true ]]; then
pip install git+https://github.com/pyro-ppl/pyro@dev;
fi
- if [[ $EXAMPLES == true ]]; then
pip install pytest nbval jupyter tqdm matplotlib torchvision scipy;
fi
script:
- python -c "import torch; print('PyTorch Version:', torch.__version__)"
- if [[ $EXAMPLES == true ]]; then
python setup.py build develop;
grep -l smoke_test examples/**/*.ipynb | xargs grep -L 'smoke_test = False' | CI=true xargs pytest --nbval-lax --current-env;
else
python -m unittest discover;
fi
matrix:
include:
- env: LINT_CHECK
python: "3.6"
install: pip install flake8==3.7.9 flake8-print==3.1.4
script: flake8
- env: PRECOMMIT_CHECK
python: "3.6"
install: pip install pre-commit; pre-commit install; pre-commit run seed-isort-config || true
script: SKIP=flake8 pre-commit run --files test/**/*.py gpytorch/**/*.py
- env: DOCS_CHECK
addons:
apt_packages:
- pandoc
python: "3.6"
install: pip install "nbformat<=4.4" IPython ipykernel "sphinx<3.0.0" sphinx_rtd_theme nbsphinx m2r attrs==19.1 scipy
script: python setup.py build_sphinx