File tree Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Original file line number Diff line number Diff 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
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 }}
You can’t perform that action at this time.
0 commit comments