[Backport release/0.0.14] fix(tests): ignore .env under pytest except the LLM API keys - #4120
Open
github-actions[bot] wants to merge 1 commit into
Open
[Backport release/0.0.14] fix(tests): ignore .env under pytest except the LLM API keys#4120github-actions[bot] wants to merge 1 commit into
github-actions[bot] wants to merge 1 commit into
Conversation
(cherry picked from commit f01a8ee)
github-actions
Bot
requested review from
Dreamsorcerer,
TomCC7,
aclauer,
bogwi,
jeff-hykin,
leshy,
mustafab0,
paul-nechifor and
spomichter
as code owners
September 13, 2026 07:48
Contributor
|
|
|
||
| load_dotenv() | ||
| _dotenv = dotenv_values() | ||
| for _key in ("OPENAI_API_KEY", "ANTHROPIC_API_KEY", "ALIBABA_API_KEY"): |
Contributor
There was a problem hiding this comment.
The pytest setup copies only OpenAI, Anthropic, and Alibaba credentials from .env, but the hosted Moondream model reads MOONDREAM_API_KEY and raises when it is absent. A pytest flow using a local .env for Moondream credentials therefore cannot initialize the model. This is non-blocking, but it makes supported Moondream test flows inconsistent with the other hosted providers.
Suggested change
| for _key in ("OPENAI_API_KEY", "ANTHROPIC_API_KEY", "ALIBABA_API_KEY"): | |
| for _key in ("OPENAI_API_KEY", "ANTHROPIC_API_KEY", "ALIBABA_API_KEY", "MOONDREAM_API_KEY"): |
Artifacts
- Evidence file captured while the check ran.
- Evidence file captured while the check ran.
- The full command output behind this check.
- The full command output behind this check.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Backport of #4111 to
release/0.0.14.