mirror of
https://github.com/lightbroker/llmsecops-research.git
synced 2026-04-30 07:17:54 +02:00
inherit
This commit is contained in:
+1
@@ -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 }}
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user