6969 labels : ${{ steps.meta.outputs.labels }}
7070 cache-from : type=gha
7171 cache-to : type=gha,mode=max
72- build-args : |
73- BUILDKIT_INLINE_CACHE=1
7472
7573 test :
7674 if : github.event_name == 'pull_request'
@@ -83,28 +81,17 @@ jobs:
8381 - name : Build test image
8482 run : docker build -t litellm-claude-test .
8583
86- - name : Test container
84+ - name : Verify container dependencies
8785 run : |
88- # Test that the container can start
8986 docker run --rm \
9087 -e LITELLM_MASTER_KEY=sk-test-key \
9188 -e CLAUDE_CODE_OAUTH_TOKEN=sk-ant-oat01-test \
9289 litellm-claude-test \
93- python --version
94-
95- # Test that LiteLLM is installed
96- docker run --rm \
97- -e LITELLM_MASTER_KEY=sk-test-key \
98- -e CLAUDE_CODE_OAUTH_TOKEN=sk-ant-oat01-test \
99- litellm-claude-test \
100- litellm --version || echo "LiteLLM version check"
101-
102- # Test that the Claude Agent SDK is importable
103- docker run --rm \
104- -e LITELLM_MASTER_KEY=sk-test-key \
105- -e CLAUDE_CODE_OAUTH_TOKEN=sk-ant-oat01-test \
106- litellm-claude-test \
107- python -c "import claude_agent_sdk; print('Claude Agent SDK available')"
90+ bash -c '
91+ python --version &&
92+ litellm --version &&
93+ python -c "import claude_agent_sdk; print(\"Claude Agent SDK available\")"
94+ '
10895
10996 release :
11097 needs : build
@@ -120,44 +107,33 @@ jobs:
120107 fetch-depth : 0
121108 token : ${{ secrets.GITHUB_TOKEN }}
122109
123- - name : Get latest tag
110+ - name : Compute next patch version
124111 id : get_latest_tag
125112 run : |
126- # Get the latest tag, defaulting to v0.0.0 if no tags exist
127113 LATEST_TAG=$(git describe --tags --abbrev=0 2>/dev/null || echo "v0.0.0")
128114 echo "latest_tag=$LATEST_TAG" >> $GITHUB_OUTPUT
129-
130- # Extract version numbers
115+
131116 VERSION=${LATEST_TAG#v}
132117 IFS='.' read -r MAJOR MINOR PATCH <<< "$VERSION"
133-
134- # Increment patch version
135- NEW_PATCH=$((PATCH + 1))
136- NEW_TAG="v${MAJOR}.${MINOR}.${NEW_PATCH}"
137-
118+ NEW_TAG="v${MAJOR}.${MINOR}.$((PATCH + 1))"
119+
138120 echo "new_tag=$NEW_TAG" >> $GITHUB_OUTPUT
139- echo "Latest tag: $LATEST_TAG"
140- echo "New tag: $NEW_TAG"
141-
121+ echo "Latest: $LATEST_TAG -> Next: $NEW_TAG"
122+
142123 - name : Generate release notes
143- id : release_notes
144124 run : |
145- # Get commit messages since last tag
146125 LATEST_TAG=${{ steps.get_latest_tag.outputs.latest_tag }}
147-
126+
148127 echo "## What's Changed" > release_notes.md
149128 echo "" >> release_notes.md
150-
151- # Get commit messages since last tag
129+
152130 if [ "$LATEST_TAG" == "v0.0.0" ]; then
153131 git log --pretty=format:"* %s (%h)" >> release_notes.md
154132 else
155133 git log ${LATEST_TAG}..HEAD --pretty=format:"* %s (%h)" >> release_notes.md
156134 fi
157-
158- echo "" >> release_notes.md
159- echo "" >> release_notes.md
160- echo "**Full Changelog**: https://github.com/${{ github.repository }}/compare/${LATEST_TAG}...${{ steps.get_latest_tag.outputs.new_tag }}" >> release_notes.md
135+
136+ echo -e "\n\n**Full Changelog**: https://github.com/${{ github.repository }}/compare/${LATEST_TAG}...${{ steps.get_latest_tag.outputs.new_tag }}" >> release_notes.md
161137
162138 - name : Create and push tag
163139 run : |
0 commit comments