skip molmoact2 tests without optional deps

This commit is contained in:
hq-fang
2026-05-21 20:54:44 +00:00
parent b0cdf99957
commit 0a369e104a
@@ -14,6 +14,10 @@
# See the License for the specific language governing permissions and
# limitations under the License.
"""Unit tests for MolmoAct2's LeRobot policy interface."""
# ruff: noqa: E402
from __future__ import annotations
import json
@@ -25,6 +29,9 @@ import pytest
import torch
import torch.nn.functional as F # noqa: N812
pytest.importorskip("transformers")
pytest.importorskip("scipy")
from lerobot.configs import FeatureType, NormalizationMode, PolicyFeature
from lerobot.policies import get_policy_class, make_policy_config
from lerobot.policies.molmoact2 import (