Skip to content

Skip live OpenAI tests when API key is unavailable#97

Merged
luis-gasparschroeder merged 1 commit into
masterfrom
ci/skip-openai-tests-without-key
Jul 17, 2026
Merged

Skip live OpenAI tests when API key is unavailable#97
luis-gasparschroeder merged 1 commit into
masterfrom
ci/skip-openai-tests-without-key

Conversation

@luis-gasparschroeder

Copy link
Copy Markdown
Collaborator

Summary

  • register a requires_openai pytest marker
  • skip live OpenAI integration tests when OPENAI_API_KEY is unset
  • keep API-independent integration tests running on fork pull requests
  • document the integration-test behavior

Verification

  • python -m ruff format --check tests/integration
  • python -m ruff check tests/integration
  • verified the marker skips without a key and runs when a key is present

This prevents fork PRs from failing because GitHub withholds repository secrets from pull_request workflows.

Co-authored-by: Cursor <cursoragent@cursor.com>
@luis-gasparschroeder
luis-gasparschroeder merged commit e250d47 into master Jul 17, 2026
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants