mirror of
https://github.com/anthropics/claude-agent-sdk-python.git
synced 2025-10-06 01:00:03 +03:00
## Summary - Standardized the trigger configuration across test, lint, and e2e workflows - All workflows now use consistent format with pull_request listed before push - E2E workflow now also runs on pushes to main branch ## Test plan - [ ] Verify workflows trigger correctly on pull requests - [ ] Verify workflows trigger correctly on pushes to main branch - [ ] Check that e2e tests run successfully on main branch 🤖 Generated with [Claude Code](https://claude.ai/code) Co-authored-by: Claude <noreply@anthropic.com>
33 lines
562 B
YAML
33 lines
562 B
YAML
name: Lint
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches:
|
|
- 'main'
|
|
|
|
jobs:
|
|
lint:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: '3.12'
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
pip install -e ".[dev]"
|
|
|
|
- name: Run ruff
|
|
run: |
|
|
ruff check src/ tests/
|
|
ruff format --check src/ tests/
|
|
|
|
- name: Run mypy
|
|
run: |
|
|
mypy src/ |