tests: temporarily skip dvclive tests (#5513)

This commit is contained in:
Ruslan Kuprieiev
2021-02-24 08:52:33 +02:00
committed by GitHub
parent 8f568ab197
commit 502f0eecc9
2 changed files with 10 additions and 1 deletions
-1
View File
@@ -88,7 +88,6 @@ install_requires = [
"pyparsing==2.4.7",
"typing_extensions>=3.7.4",
"fsspec>=0.8.5",
"dvclive>=0.0.1a0",
"diskcache>=5.2.1",
]
+10
View File
@@ -54,6 +54,11 @@ LIVE_CHECKPOINT_SCRIPT = dedent(
@pytest.fixture
def live_stage(tmp_dir, scm, dvc):
try:
import dvclive # noqa, pylint:disable=unused-import
except ImportError:
pytest.skip("no dvclive")
def make(summary=True, html=True, live=None, live_no_cache=None):
assert bool(live) != bool(live_no_cache)
tmp_dir.gen("train.py", LIVE_SCRITP)
@@ -167,6 +172,11 @@ def test_live_html(tmp_dir, dvc, live_stage, html):
@pytest.fixture
def live_checkpoint_stage(tmp_dir, scm, dvc):
try:
import dvclive # noqa, pylint:disable=unused-import
except ImportError:
pytest.skip("no dvclive")
def make(live=None, live_no_cache=None):
assert bool(live) != bool(live_no_cache)