Skip to content

Commit 3ab13dd

Browse files
naji247claude
andcommitted
update compatibility tests
🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent a9cbdff commit 3ab13dd

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

.github/workflows/mcp-compatibility.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,20 +23,25 @@ jobs:
2323
# Get all available versions from PyPI
2424
versions=$(pip index versions mcp 2>/dev/null | grep -o '[0-9]\+\.[0-9]\+\.[0-9]\+' | sort -V)
2525
26-
# Filter to versions >= 1.0.0 and format as JSON array
27-
filtered_versions=()
26+
# Filter to versions >= 1.0.0 and get only latest patch version for each minor
27+
declare -A latest_minor
2828
for version in $versions; do
2929
major=$(echo $version | cut -d. -f1)
3030
minor=$(echo $version | cut -d. -f2)
31-
patch=$(echo $version | cut -d. -f3)
3231
3332
# Include if major >= 1
3433
if [ "$major" -ge 1 ]; then
35-
filtered_versions+=("\"$version\"")
34+
minor_key="$major.$minor"
35+
latest_minor[$minor_key]="$version"
3636
fi
3737
done
3838
39-
# Create JSON array
39+
# Create JSON array from latest versions
40+
filtered_versions=()
41+
for version in "${latest_minor[@]}"; do
42+
filtered_versions+=("\"$version\"")
43+
done
44+
4045
json_array="[$(IFS=,; echo "${filtered_versions[*]}")]"
4146
echo "Found MCP versions: $json_array"
4247
echo "versions=$json_array" >> $GITHUB_OUTPUT
@@ -64,7 +69,7 @@ jobs:
6469

6570
- name: Install dependencies with MCP ${{ matrix.mcp-version }}
6671
run: |
67-
uv sync
72+
uv sync --extra dev
6873
uv pip install mcp==${{ matrix.mcp-version }}
6974
7075
- name: Run full test suite with MCP ${{ matrix.mcp-version }}

0 commit comments

Comments
 (0)