Skip to content

feat: add ANTHROPIC_API_KEY to GitHub Actions#3

Merged
miams merged 1 commit intodevelopfrom
feature/add-llm-credentials-to-ci
Oct 15, 2025
Merged

feat: add ANTHROPIC_API_KEY to GitHub Actions#3
miams merged 1 commit intodevelopfrom
feature/add-llm-credentials-to-ci

Conversation

@miams
Copy link
Copy Markdown
Owner

@miams miams commented Oct 15, 2025

Summary

Adds ANTHROPIC_API_KEY environment variable to GitHub Actions test workflow to enable testing of LLM-powered commands.

Changes

  • Updated to pass from repository secrets

Required Action

Before merging, add the ANTHROPIC_API_KEY secret to your repository:

  1. Go to: https://github.com/miams/rmagent/settings/secrets/actions
  2. Click New repository secret
  3. Name: ANTHROPIC_API_KEY
  4. Value: Your Anthropic API key (starts with sk-ant-)
  5. Click Add secret

Benefits

  • ✅ Enables testing of ask command with real LLM
  • ✅ Enables testing of bio command without --no-ai flag
  • ✅ Improves test coverage by running all commands properly
  • ✅ Catches LLM-related issues earlier in CI

Testing

After adding the secret, the GitHub Actions workflow will:

  • Run all tests including LLM-powered commands
  • Provide better test coverage
  • Validate LLM integration works correctly

The workflow will still pass if the secret is not set (commands that require LLM will fail gracefully and tests are designed to handle this).

🤖 Generated with Claude Code

Allows testing of LLM-powered commands (ask, bio with AI) in CI.
The API key secret needs to be added to GitHub repository settings:
Settings > Secrets and variables > Actions > New repository secret

Name: ANTHROPIC_API_KEY
Value: sk-ant-...your-key...
@miams miams merged commit 74c6757 into develop Oct 15, 2025
1 check passed
@miams miams deleted the feature/add-llm-credentials-to-ci branch October 15, 2025 05:54
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.

1 participant