Skip to content

Commit 456c9f8

Browse files
committed
Lock gpytorch to pre-release 0.3.2. in .travis.yml (#74)
Summary: Pull Request resolved: #74 Let's test against this commit that will likely become 0.3.2. Also adds a "test" installation so that we don't install all the notebook stuff when testing in contbuild. Reviewed By: danielrjiang Differential Revision: D15037922 fbshipit-source-id: e6eea4920509cca931d194ce372a6ab53cd6d419
1 parent 1425257 commit 456c9f8

File tree

2 files changed

+23
-18
lines changed

2 files changed

+23
-18
lines changed

.travis.yml

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,35 +5,39 @@ python:
55

66
matrix:
77
include:
8-
# Stable versions under py3.6 (TODO: Lock to upcomingofficial GPyTorch release)
8+
# Stable versions under py3.6
99
- name: "GPyTorch + PyTorch stable (Python 3.6)"
1010
python: "3.6"
1111
install:
1212
- pip install -q cython numpy
13-
- pip install -q -e .[dev]
13+
# TODO: Remove when locked to upcoming GPyTorch release 0.3.2
14+
- pip install -q git+https://github.com/cornellius-gp/gpytorch.git@8f0d338d42222689f0106f5f29e62ef4777a392f
15+
- pip install -q -e .[test]
1416
script:
15-
- pytest -ra --cov=.
16-
# Stable versions under py3.7 (TODO: Lock to upcomingofficial GPyTorch release)
17+
- pytest -ra --cov=. --cov-report term-missing
18+
# Stable versions under py3.7
1719
- name: "GPyTorch + PyTorch stable (Python 3.7)"
1820
# Enable Python 3.7 w/o without globally enabling sudo and xenial dist
1921
# See https://github.com/travis-ci/travis-ci/issues/9815
2022
python: "3.7"
2123
dist: xenial
2224
install:
2325
- pip install -q cython numpy
24-
- pip install -q -e .[dev]
26+
# TODO: Remove when locked to upcoming GPyTorch release 0.3.2
27+
- pip install -q git+https://github.com/cornellius-gp/gpytorch.git@8f0d338d42222689f0106f5f29e62ef4777a392f
28+
- pip install -q -e .[test]
2529
script:
26-
- pytest -ra --cov=.
30+
- pytest -ra --cov=. --cov-report term-missing
2731
# Latest versions
2832
- name: "GPyTorch + PyTorch latest"
2933
python: "3.6"
3034
install:
3135
- pip install -q cython numpy
3236
- pip install -q torch_nightly -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html;
3337
- pip install -q git+https://github.com/cornellius-gp/gpytorch.git
34-
- pip install -q -e .[dev]
38+
- pip install -q -e .[test]
3539
script:
36-
- pytest -ra --cov=.
40+
- pytest -ra --cov=. --cov-report term-missing
3741
# Flake8 linting
3842
- name: "Lint: flake8 (Python 3.6)"
3943
python: "3.6"
@@ -54,7 +58,8 @@ matrix:
5458
python: "3.6"
5559
install:
5660
- pip install -q cython numpy
57-
- pip install -q git+https://github.com/cornellius-gp/gpytorch.git@eb96db228b9a1aeb8314ec1d8bc448d11d4cc46c
61+
# TODO: Remove when locked to upcoming GPyTorch release 0.3.2
62+
- pip install -q git+https://github.com/cornellius-gp/gpytorch.git@8f0d338d42222689f0106f5f29e62ef4777a392f
5863
- pip install -q -e .[dev]
5964
script:
6065
# warnings treated as errors

setup.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,10 @@ def missing(package_name):
6060
# TODO: Use torch Sobol once torch 1.1 is released
6161
EXTENSIONS = [Extension("botorch.qmc.sobol", ["botorch/qmc/sobol.pyx"])]
6262

63-
DEV_REQUIRES = [
64-
"black",
65-
"flake8",
66-
"pytest>=3.6",
67-
"pytest-cov",
68-
"sphinx",
69-
"sphinx-autodoc-typehints",
70-
]
63+
64+
TEST_REQUIRES = ["pytest>=3.6", "pytest-cov"]
65+
66+
DEV_REQUIRES = TEST_REQUIRES + ["black", "flake8", "sphinx", "sphinx-autodoc-typehints"]
7167

7268
TUTORIAL_REQUIRES = ["jupyter", "matplotlib"]
7369

@@ -90,5 +86,9 @@ def missing(package_name):
9086
include_dirs=[numpy.get_include()],
9187
packages=find_packages(),
9288
ext_modules=cythonize(EXTENSIONS),
93-
extras_require={"dev": DEV_REQUIRES, "tutorial": TUTORIAL_REQUIRES},
89+
extras_require={
90+
"dev": DEV_REQUIRES,
91+
"test": TEST_REQUIRES,
92+
"tutorial": TUTORIAL_REQUIRES,
93+
},
9494
)

0 commit comments

Comments
 (0)