From 502f0eecc9cd1eced70a2e468ec952c956284abf Mon Sep 17 00:00:00 2001 From: Ruslan Kuprieiev Date: Wed, 24 Feb 2021 08:52:33 +0200 Subject: [PATCH] tests: temporarily skip dvclive tests (#5513) --- setup.py | 1 - tests/func/test_live.py | 10 ++++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index f0c21c0cb..fab13f4a4 100644 --- a/setup.py +++ b/setup.py @@ -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", ] diff --git a/tests/func/test_live.py b/tests/func/test_live.py index 45dc1c2dd..b6bb3b727 100644 --- a/tests/func/test_live.py +++ b/tests/func/test_live.py @@ -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)