From 648c6dace369906a4b1d95d2ed67c015844c365d Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 26 Mar 2026 22:43:40 +0000 Subject: [PATCH] feat(ci): test Python packages on all supported versions (3.11, 3.12, 3.13) Add Python version matrix to CI test workflow to ensure compatibility across all supported versions. Excludes packages that require 3.12+ (computer, computer-server, mcp-server, som) from Python 3.11 tests. https://claude.ai/code/session_011g2T5kRBc6QFPjVFC8oW4B --- .github/workflows/ci-test-python.yml | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci-test-python.yml b/.github/workflows/ci-test-python.yml index 839d3a961..f8e5d7832 100644 --- a/.github/workflows/ci-test-python.yml +++ b/.github/workflows/ci-test-python.yml @@ -9,12 +9,13 @@ on: jobs: test: - name: Test ${{ matrix.package }} + name: Test ${{ matrix.package }} (Python ${{ matrix.python-version }}) runs-on: ubuntu-latest strategy: fail-fast: false # Test all packages even if one fails matrix: + python-version: ["3.11", "3.12", "3.13"] package: - core - agent @@ -23,15 +24,25 @@ jobs: - mcp-server - som - cua-auto + # Exclude packages that don't support Python 3.11 + exclude: + - python-version: "3.11" + package: computer + - python-version: "3.11" + package: computer-server + - python-version: "3.11" + package: mcp-server + - python-version: "3.11" + package: som steps: - name: Checkout code uses: actions/checkout@v4 - - name: Set up Python + - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v5 with: - python-version: "3.12" + python-version: ${{ matrix.python-version }} - name: Install uv run: | @@ -72,8 +83,8 @@ jobs: if: always() with: file: ./libs/python/${{ matrix.package }}/coverage.xml - flags: ${{ matrix.package }} - name: codecov-${{ matrix.package }} + flags: ${{ matrix.package }}-py${{ matrix.python-version }} + name: codecov-${{ matrix.package }}-py${{ matrix.python-version }} fail_ci_if_error: false continue-on-error: true