From 75dd053a40ca18fc0cc4f1056986dd134193b2b0 Mon Sep 17 00:00:00 2001 From: Hundao <38208494+Hundao@users.noreply.github.com> Date: Tue, 3 Feb 2026 18:11:32 +0800 Subject: [PATCH] fix(ci): migrate remaining CI jobs from pip to uv (#3366) Closes #3363 --- .github/workflows/ci.yml | 33 +++++++++++++++++---------------- .github/workflows/release.yml | 9 +++++---- 2 files changed, 22 insertions(+), 20 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4fa3b7e9..1bab5e39 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,23 +21,22 @@ jobs: uses: actions/setup-python@v5 with: python-version: '3.11' - cache: 'pip' + + - name: Install uv + uses: astral-sh/setup-uv@v4 - name: Install dependencies - run: | - cd core - pip install -e . - pip install -r requirements-dev.txt + run: uv sync --project core --group dev - name: Ruff lint run: | - ruff check core/ - ruff check tools/ + uv run --project core ruff check core/ + uv run --project core ruff check tools/ - name: Ruff format run: | - ruff format --check core/ - ruff format --check tools/ + uv run --project core ruff format --check core/ + uv run --project core ruff format --check tools/ test: name: Test Python Framework @@ -52,18 +51,19 @@ jobs: uses: actions/setup-python@v5 with: python-version: '3.11' - cache: 'pip' + + - name: Install uv + uses: astral-sh/setup-uv@v4 - name: Install dependencies run: | cd core - pip install -e . - pip install -r requirements-dev.txt + uv sync - name: Run tests run: | cd core - pytest tests/ -v + uv run pytest tests/ -v test-tools: name: Test Tools @@ -97,13 +97,14 @@ jobs: uses: actions/setup-python@v5 with: python-version: '3.11' - cache: 'pip' + + - name: Install uv + uses: astral-sh/setup-uv@v4 - name: Install dependencies run: | cd core - pip install -e . - pip install -r requirements-dev.txt + uv sync - name: Validate exported agents run: | diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b54866b1..90826b03 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -21,18 +21,19 @@ jobs: uses: actions/setup-python@v5 with: python-version: '3.11' - cache: 'pip' + + - name: Install uv + uses: astral-sh/setup-uv@v4 - name: Install dependencies run: | cd core - pip install -e . - pip install -r requirements-dev.txt + uv sync - name: Run tests run: | cd core - pytest tests/ -v + uv run pytest tests/ -v - name: Generate changelog id: changelog