forked from hyperliquid-dex/hyperliquid-python-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
@claude Please create a new GitHub Actions workflow file .github/workflows/claude-test-debug.yml that:
Requirements:
- Triggers after the main Claude Code workflow completes successfully
- Sets up the Python environment with Poetry
- Runs comprehensive testing including:
make testfor unit testsmake lintfor code quality- Example validation in examples/ directory
- Integration tests if they exist
- Captures all console output and errors
- If tests fail, automatically debugs and attempts fixes
- Creates a detailed test report with results
- Updates the branch with any fixes made during debugging
- Stores the final console output for documentation workflow
Key Features:
- Use
workflow_runtrigger to activate afterclaude.ymlcompletes - Run tests in isolated environment
- Implement retry logic for failed tests
- Capture detailed logging of all operations
- Auto-fix common issues (imports, syntax, etc.)
- Create test artifacts for later workflows
Output Requirements:
- Generate test results summary
- Save final console output to artifacts
- Update PR/issue with test status
- Tag issues/PRs appropriately based on test results
Please implement this workflow with proper error handling and comprehensive testing coverage.