Skip to content

Lock gpytorch to pre-release 0.3.2. in .travis.yml #74

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

Closed
wants to merge 1 commit into from
Closed
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
23 changes: 14 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,35 +5,39 @@ python:

matrix:
include:
# Stable versions under py3.6 (TODO: Lock to upcomingofficial GPyTorch release)
# Stable versions under py3.6
- name: "GPyTorch + PyTorch stable (Python 3.6)"
python: "3.6"
install:
- pip install -q cython numpy
- pip install -q -e .[dev]
# TODO: Remove when locked to upcoming GPyTorch release 0.3.2
- pip install -q git+https://github.com/cornellius-gp/gpytorch.git@8f0d338d42222689f0106f5f29e62ef4777a392f
- pip install -q -e .[test]
script:
- pytest -ra --cov=.
# Stable versions under py3.7 (TODO: Lock to upcomingofficial GPyTorch release)
- pytest -ra --cov=. --cov-report term-missing
# Stable versions under py3.7
- name: "GPyTorch + PyTorch stable (Python 3.7)"
# Enable Python 3.7 w/o without globally enabling sudo and xenial dist
# See https://github.com/travis-ci/travis-ci/issues/9815
python: "3.7"
dist: xenial
install:
- pip install -q cython numpy
- pip install -q -e .[dev]
# TODO: Remove when locked to upcoming GPyTorch release 0.3.2
- pip install -q git+https://github.com/cornellius-gp/gpytorch.git@8f0d338d42222689f0106f5f29e62ef4777a392f
- pip install -q -e .[test]
script:
- pytest -ra --cov=.
- pytest -ra --cov=. --cov-report term-missing
# Latest versions
- name: "GPyTorch + PyTorch latest"
python: "3.6"
install:
- pip install -q cython numpy
- pip install -q torch_nightly -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html;
- pip install -q git+https://github.com/cornellius-gp/gpytorch.git
- pip install -q -e .[dev]
- pip install -q -e .[test]
script:
- pytest -ra --cov=.
- pytest -ra --cov=. --cov-report term-missing
# Flake8 linting
- name: "Lint: flake8 (Python 3.6)"
python: "3.6"
Expand All @@ -54,7 +58,8 @@ matrix:
python: "3.6"
install:
- pip install -q cython numpy
- pip install -q git+https://github.com/cornellius-gp/gpytorch.git@eb96db228b9a1aeb8314ec1d8bc448d11d4cc46c
# TODO: Remove when locked to upcoming GPyTorch release 0.3.2
- pip install -q git+https://github.com/cornellius-gp/gpytorch.git@8f0d338d42222689f0106f5f29e62ef4777a392f
- pip install -q -e .[dev]
script:
# warnings treated as errors
Expand Down
18 changes: 9 additions & 9 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,10 @@ def missing(package_name):
# TODO: Use torch Sobol once torch 1.1 is released
EXTENSIONS = [Extension("botorch.qmc.sobol", ["botorch/qmc/sobol.pyx"])]

DEV_REQUIRES = [
"black",
"flake8",
"pytest>=3.6",
"pytest-cov",
"sphinx",
"sphinx-autodoc-typehints",
]

TEST_REQUIRES = ["pytest>=3.6", "pytest-cov"]

DEV_REQUIRES = TEST_REQUIRES + ["black", "flake8", "sphinx", "sphinx-autodoc-typehints"]

TUTORIAL_REQUIRES = ["jupyter", "matplotlib"]

Expand All @@ -90,5 +86,9 @@ def missing(package_name):
include_dirs=[numpy.get_include()],
packages=find_packages(),
ext_modules=cythonize(EXTENSIONS),
extras_require={"dev": DEV_REQUIRES, "tutorial": TUTORIAL_REQUIRES},
extras_require={
"dev": DEV_REQUIRES,
"test": TEST_REQUIRES,
"tutorial": TUTORIAL_REQUIRES,
},
)