claude-code-sdk-python/.github/workflows
Ashwin Bhat a0ce44a3fa
Add Docker-based test infrastructure for e2e tests (#424)
## Summary

- Add `Dockerfile.test`: Python 3.12 image with Claude Code CLI
installed
- Add `scripts/test-docker.sh`: Local script to run tests in Docker
- Add `test-e2e-docker` job to CI workflow that runs the full e2e suite
in a container
- Add `.dockerignore` to speed up Docker builds

## Context

This helps catch Docker-specific issues like #406 where filesystem-based
agents loaded via `setting_sources=["project"]` may silently fail in
Docker environments.

## Local Usage

```bash
# Run unit tests in Docker (no API key needed)
./scripts/test-docker.sh unit

# Run e2e tests in Docker
ANTHROPIC_API_KEY=sk-... ./scripts/test-docker.sh e2e

# Run all tests
ANTHROPIC_API_KEY=sk-... ./scripts/test-docker.sh all
```

## Test plan

- [x] Unit tests pass in Docker locally (129 passed)
- [ ] CI job runs successfully

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude <noreply@anthropic.com>
2025-12-16 10:53:13 -08:00
..
claude-code-review.yml Add Claude Code GitHub Workflow 2025-06-17 17:03:37 -07:00
claude-issue-triage.yml Add Claude issue triage workflow 2025-07-03 11:15:41 -07:00
claude.yml fix pytest allowed tool (#117) 2025-08-06 16:03:30 -07:00
create-release-tag.yml chore: use CHANGELOG.md content for GitHub release notes (#420) 2025-12-15 16:53:23 -08:00
lint.yml Standardize GitHub workflow triggers (#155) 2025-09-07 18:31:38 -07:00
publish.yml fix: move fetch-depth to publish job and use claude-opus-4-5 for changelog (#394) 2025-12-06 16:52:09 -08:00
slack-issue-notification.yml Added slack issue notifier for new opened issues (#356) 2025-11-23 21:24:25 -08:00
test.yml Add Docker-based test infrastructure for e2e tests (#424) 2025-12-16 10:53:13 -08:00