YARQA-ATTN / tests /test_local_kernels.py
betterwithage's picture
Bind GitHub szl-holdings/YARQA-ATTN@098d19b: KERNEL card (python present, not import-LIVE) + torch-ext/yarqa_attn
621477d verified
Raw
History Blame Contribute Delete
622 Bytes
# SPDX-FileCopyrightText: 2026 SZL Holdings
# SPDX-License-Identifier: Apache-2.0
"""Load-path honesty. LOCAL_KERNELS must not skip a failed get_kernel."""
from __future__ import annotations
import os
import pytest
@pytest.mark.kernels_ci
def test_local_kernels_get_kernel_is_required():
if not os.environ.get("LOCAL_KERNELS"):
pytest.skip(
"LOCAL_KERNELS unset — source-tree or Hub skip path is labeled elsewhere"
)
kernels = pytest.importorskip("kernels")
kernels.get_kernel(
"SZLHOLDINGS/YARQA-ATTN",
revision="main",
trust_remote_code=True,
)