From 76902cfba2bf7f89e0ad91e1c07317f0d1da1dd1 Mon Sep 17 00:00:00 2001 From: Nejc Date: Mon, 10 Mar 2025 19:03:21 +0800 Subject: [PATCH 1/2] test: claude --- .github/workflows/ci.yml | 4 ++-- action.yml | 1 + src/claude_summary.py | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 08fd286..25254fd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,10 +26,10 @@ jobs: uses: ./ with: #deepseekKey: ${{ secrets.DEEPSEEK_KEY }} - geminiKey: ${{ secrets.GEMINI_KEY }} + #geminiKey: ${{ secrets.GEMINI_KEY }} #openAiKey: ${{ secrets.OPENAI_KEY }} #openAiOrg: ${{ secrets.OPENAI_ORG }} - #anthropicKey: ${{ secrets.ANTHROPIC_KEY }} + anthropicKey: ${{ secrets.ANTHROPIC_KEY }} #notionKey: ${{ secrets.NOTION_KEY }} #notionDbId: ${{ secrets.NOTION_DB_ID }} #linearKey: ${{ secrets.LINEAR_KEY }} diff --git a/action.yml b/action.yml index 379410a..48f25e2 100644 --- a/action.yml +++ b/action.yml @@ -93,6 +93,7 @@ runs: with: version: "0.6.2" enable-cache: true + cache-dependency-glob: "${{ github.action_path }}**/uv.lock" - run: echo ${{ github.action_path }} shell: bash diff --git a/src/claude_summary.py b/src/claude_summary.py index 14a97d3..e50c60c 100644 --- a/src/claude_summary.py +++ b/src/claude_summary.py @@ -1,7 +1,7 @@ -import anthropic +from anthropic import Anthropic def claude_summary(issues, prompt, key, model="claude-3-5-sonnet-20240620"): - client = anthropic.Anthropic( + client = Anthropic( api_key=key, ) fullPrompt = f""" From 0cb65d236d4be272d06518bad349ed6c596ed725 Mon Sep 17 00:00:00 2001 From: Nejc Date: Mon, 10 Mar 2025 19:04:59 +0800 Subject: [PATCH 2/2] fix: uv.lock path --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 48f25e2..2336699 100644 --- a/action.yml +++ b/action.yml @@ -93,7 +93,7 @@ runs: with: version: "0.6.2" enable-cache: true - cache-dependency-glob: "${{ github.action_path }}**/uv.lock" + cache-dependency-glob: "**/uv.lock" - run: echo ${{ github.action_path }} shell: bash