Skip to content

Commit

Permalink
Maintainance update (#144)
Browse files Browse the repository at this point in the history
* change test environment

* allow failure fix

* fix pytest deprecations

* Update .travis.yml
  • Loading branch information
ferrine committed Aug 4, 2020
1 parent 30b5d52 commit 46224d8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
10 changes: 5 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@
language : shell

env:
- PYTHON_VERSION=3.6 PYTORCH_CHANNEL='pytorch' PYTORCH_VERSION='=1.5.0' COVERAGE='--cov geoopt'
- PYTHON_VERSION=3.7 PYTORCH_CHANNEL='pytorch' PYTORCH_VERSION='=1.5.0' COVERAGE=''
- PYTHON_VERSION=3.6 PYTORCH_CHANNEL='pytorch' PYTORCH_VERSION='=1.6.0' COVERAGE='--cov geoopt'
- PYTHON_VERSION=3.6 PYTORCH_CHANNEL='pytorch' PYTORCH_VERSION='=1.5.1' COVERAGE=''
- PYTHON_VERSION=3.6 PYTORCH_CHANNEL='pytorch' PYTORCH_VERSION='=1.4.0' COVERAGE=''
- PYTHON_VERSION=3.7 PYTORCH_CHANNEL='pytorch' PYTORCH_VERSION='=1.4.0' COVERAGE=''
- PYTHON_VERSION=3.7 PYTORCH_CHANNEL='pytorch-nightly' PYTORCH_VERSION='' COVERAGE=''
- PYTHON_VERSION=3.6 PYTORCH_CHANNEL='pytorch' PYTORCH_VERSION='=1.3.1' COVERAGE=''
- PYTHON_VERSION=3.6 PYTORCH_CHANNEL='pytorch-nightly' PYTORCH_VERSION='' COVERAGE=''

matrix:
allow_failures:
- env: PYTHON_VERSION=3.7 PYTORCH_CHANNEL='pytorch-nightly' PYTORCH_VERSION='' COVERAGE=''
- env: PYTHON_VERSION=3.6 PYTORCH_CHANNEL='pytorch-nightly' PYTORCH_VERSION='' COVERAGE=''

os:
- linux
Expand Down
4 changes: 2 additions & 2 deletions tests/test_gyrovector_math.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from geoopt.manifolds import stereographic


@pytest.fixture("function", autouse=True, params=range(30, 40))
@pytest.fixture(scope="function", autouse=True, params=range(30, 40))
def seed(request):
seed = request.param
torch.manual_seed(seed)
Expand All @@ -20,7 +20,7 @@ def seed(request):


@pytest.fixture(
"function", params=[torch.float64, torch.float32], ids=["float64", "float32"]
scope="function", params=[torch.float64, torch.float32], ids=["float64", "float32"]
)
def dtype(request):
return request.param
Expand Down
4 changes: 2 additions & 2 deletions tests/test_lorentz_math.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from geoopt.manifolds import lorentz


@pytest.fixture("module", autouse=True, params=range(30, 40))
@pytest.fixture(scope="module", autouse=True, params=range(30, 40))
def seed(request):
seed = request.param
torch.manual_seed(seed)
Expand All @@ -14,7 +14,7 @@ def seed(request):
return seed


@pytest.fixture("module", params=[torch.float64, torch.float32])
@pytest.fixture(scope="module", params=[torch.float64, torch.float32])
def dtype(request):
return request.param

Expand Down

0 comments on commit 46224d8

Please sign in to comment.