This commit is contained in:
Adam Wilson
2025-08-19 12:39:55 -06:00
parent c7fa024dc5
commit a5a21da11b
2 changed files with 9 additions and 0 deletions
@@ -19,6 +19,7 @@ on:
jobs:
test:
uses: ./.github/workflows/test_04.abstract_base.yml
secrets: inherit
with:
batch_offset: ${{ inputs.batch_offset }}
range_name: ${{ inputs.range_name }}
+8
View File
@@ -70,6 +70,14 @@ def pytest_deselected(items):
@pytest.fixture(scope="session", autouse=True)
def setup_test_environment():
"""Setup run before every test automatically."""
if "HF_TOKEN" in os.environ:
hf_token = os.environ.get("HF_TOKEN", "").strip()
if not hf_token:
raise ValueError("conftest.py: HF_TOKEN environment variable is empty or not found")
else:
raise ValueError("conftest.py: HF_TOKEN environment variable not found")
# Set test environment variables
os.environ["TESTING"] = "true"
os.environ["LOG_LEVEL"] = "DEBUG"