File tree Expand file tree Collapse file tree 6 files changed +42
-6
lines changed
Expand file tree Collapse file tree 6 files changed +42
-6
lines changed Original file line number Diff line number Diff line change 55 directory : /
66 schedule :
77 interval : daily
8+ groups :
9+ github-actions :
10+ patterns :
11+ - " *"
12+ cooldown :
13+ default-days : 7
Original file line number Diff line number Diff line change 1313permissions :
1414 contents : read
1515
16+ concurrency :
17+ group : ${{ github.workflow }}-${{ github.ref }}
18+ cancel-in-progress : true
19+
1620jobs :
1721 claude :
22+ name : Run Claude Code
1823 if : |
1924 (github.event_name == 'issue_comment' && contains(github.event.comment.body, '@claude')) ||
2025 (github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '@claude')) ||
2126 (github.event_name == 'pull_request_review' && contains(github.event.review.body, '@claude')) ||
2227 (github.event_name == 'issues' && (contains(github.event.issue.body, '@claude') || contains(github.event.issue.title, '@claude')))
2328 runs-on : ubuntu-latest
2429 permissions :
25- contents : read
26- pull-requests : read
27- issues : read
28- id-token : write
30+ contents : read # Required to checkout the repository
31+ pull-requests : read # Required to read PR comments and details
32+ issues : read # Required to read issue comments and details
33+ id-token : write # Required for OIDC token exchange with Anthropic
2934 steps :
3035 - name : Checkout repository
3136 uses : actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
3540
3641 - name : Run Claude Code
3742 id : claude
38- uses : anthropics/claude-code-action@beta
43+ uses : anthropics/claude-code-action@a7e4c51380c42dd89b127f5e5f9be7b54020bc6b # v1.0.21
3944 with :
4045 anthropic_api_key : ${{ secrets.ANTHROPIC_API_KEY }}
4146
Original file line number Diff line number Diff line change 99permissions :
1010 contents : read
1111
12+ concurrency :
13+ group : ${{ github.workflow }}-${{ github.ref }}
14+ cancel-in-progress : true
15+
1216jobs :
1317 lint-python :
18+ name : Lint Python with Ruff and mypy
1419 runs-on : ubuntu-latest
1520 permissions :
1621 contents : read
4247 continue-on-error : true # TODO: Remove once type annotations are fixed
4348
4449 all-lints-pass :
50+ name : All lints pass
4551 if : always()
4652 permissions :
4753 contents : read
Original file line number Diff line number Diff line change 1111permissions :
1212 contents : read
1313
14+ concurrency :
15+ group : ${{ github.workflow }}-${{ github.ref }}
16+ cancel-in-progress : true
17+
1418jobs :
1519 pip-audit :
20+ name : Scan dependencies with pip-audit
1621 runs-on : ubuntu-latest
1722 permissions :
1823 contents : read
Original file line number Diff line number Diff line change 77permissions :
88 contents : read
99
10+ concurrency :
11+ group : ${{ github.workflow }}-${{ github.ref }}
12+ cancel-in-progress : false
13+
1014jobs :
1115 build-release :
16+ name : Build release artifacts
1217 runs-on : ubuntu-latest
1318 permissions :
1419 contents : read
3641 path : dist/
3742
3843 publish :
44+ name : Publish to PyPI
3945 runs-on : ubuntu-latest
4046 environment : release
4147 permissions :
Original file line number Diff line number Diff line change 1212permissions :
1313 contents : read
1414
15+ concurrency :
16+ group : ${{ github.workflow }}-${{ github.ref }}
17+ cancel-in-progress : true
18+
1519jobs :
1620 test :
21+ name : Test Python ${{ matrix.python-version }}
1722 runs-on : ubuntu-latest
1823 permissions :
1924 contents : read
3338 cache-dependency-glob : " uv.lock"
3439
3540 - name : Set up Python ${{ matrix.python-version }}
36- run : uv python install ${{ matrix.python-version }}
41+ env :
42+ PYTHON_VERSION : ${{ matrix.python-version }}
43+ run : uv python install -- "$PYTHON_VERSION"
3744
3845 - name : Install dependencies
3946 run : uv sync --extra test
4552 run : uv run coverage report
4653
4754 all-tests-pass :
55+ name : All tests pass
4856 if : always()
4957 permissions :
5058 contents : read
You can’t perform that action at this time.
0 commit comments