Skip to content

Commit 6b5f6f2

Browse files
author
Andrei Bratu
committed
Added HL_API_KEY in secrets
1 parent ba349ac commit 6b5f6f2

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ jobs:
4747
REPLICATE_API_KEY: ${{ secrets.REPLICATE_API_KEY }}
4848
GROQ_API_KEY: ${{ secrets.GROQ_API_KEY }}
4949
COHERE_API_KEY: ${{ secrets.COHERE_API_KEY }}
50+
HUMANLOOP_API_KEY: ${{ secrets.HUMANLOOP_API_KEY }}
5051

5152
publish:
5253
needs: [compile, test]

tests/integration/conftest.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,12 @@ def root_integration_directory(humanloop_client: Humanloop) -> Generator[str, No
5151
def api_keys() -> APIKeys:
5252
openai_key = os.getenv("OPENAI_API_KEY")
5353
humanloop_key = os.getenv("HUMANLOOP_API_KEY")
54-
if openai_key is None or humanloop_key is None:
55-
raise ValueError("API keys are not set in .env file")
54+
for key_name, key_value in [
55+
("OPENAI_API_KEY", openai_key),
56+
("HUMANLOOP_API_KEY", humanloop_key),
57+
]:
58+
if key_value is None:
59+
raise ValueError(f"{key_name} is not set in .env file")
5660
api_keys = APIKeys(
5761
openai=openai_key,
5862
humanloop=humanloop_key,

0 commit comments

Comments
 (0)