Skip to content

A programming framework for agentic AI

Use install uv action (#3906)

Jack Gerrits13b7ae502e75
diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml
index 3b66dd20c..944e7e4f9 100644
--- a/.github/workflows/checks.yml
+++ b/.github/workflows/checks.yml
@@ -15,7 +15,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- - run: curl -LsSf https://astral.sh/uv/install.sh | sh
+ - uses: astral-sh/setup-uv@v3
+ with:
+ enable-cache: true
- uses: actions/setup-python@v5
with:
python-version: "3.11"
@@ -31,7 +33,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- - run: curl -LsSf https://astral.sh/uv/install.sh | sh
+ - uses: astral-sh/setup-uv@v3
+ with:
+ enable-cache: true
- uses: actions/setup-python@v5
with:
python-version: "3.11"
@@ -57,7 +61,9 @@ jobs:
]
steps:
- uses: actions/checkout@v4
- - run: curl -LsSf https://astral.sh/uv/install.sh | sh
+ - uses: astral-sh/setup-uv@v3
+ with:
+ enable-cache: true
- uses: actions/setup-python@v5
with:
python-version: "3.11"
@@ -83,7 +89,9 @@ jobs:
]
steps:
- uses: actions/checkout@v4
- - run: curl -LsSf https://astral.sh/uv/install.sh | sh
+ - uses: astral-sh/setup-uv@v3
+ with:
+ enable-cache: true
- uses: actions/setup-python@v5
with:
python-version: "3.11"
@@ -107,7 +115,9 @@ jobs:
]
steps:
- uses: actions/checkout@v4
- - run: curl -LsSf https://astral.sh/uv/install.sh | sh
+ - uses: astral-sh/setup-uv@v3
+ with:
+ enable-cache: true
- uses: actions/setup-python@v5
with:
python-version: "3.11"
@@ -129,7 +139,9 @@ jobs:
package: ["./packages/autogen-core"]
steps:
- uses: actions/checkout@v4
- - run: curl -LsSf https://astral.sh/uv/install.sh | sh
+ - uses: astral-sh/setup-uv@v3
+ with:
+ enable-cache: true
- uses: actions/setup-python@v5
with:
python-version: "3.11"
@@ -145,7 +157,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- - run: curl -LsSf https://astral.sh/uv/install.sh | sh
+ - uses: astral-sh/setup-uv@v3
+ with:
+ enable-cache: true
- uses: actions/setup-python@v5
with:
python-version: "3.11"
diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml
index 13aeea090..870066477 100644
--- a/.github/workflows/docs.yml
+++ b/.github/workflows/docs.yml
@@ -42,7 +42,9 @@ jobs:
with:
lfs: "true"
ref: ${{ matrix.version.ref }}
- - run: curl -LsSf https://astral.sh/uv/install.sh | sh
+ - uses: astral-sh/setup-uv@v3
+ with:
+ enable-cache: true
- uses: actions/setup-python@v5
with:
python-version: "3.11"
diff --git a/.github/workflows/single-python-package.yml b/.github/workflows/single-python-package.yml
index f0c8a01d7..db761e2c2 100644
--- a/.github/workflows/single-python-package.yml
+++ b/.github/workflows/single-python-package.yml
@@ -32,7 +32,9 @@ jobs:
ref: ${{ github.event.inputs.ref }}
# Require ref to be a tag
- run: git show-ref --verify refs/tags/${{ github.event.inputs.ref }}
- - run: curl -LsSf https://astral.sh/uv/install.sh | sh
+ - uses: astral-sh/setup-uv@v3
+ with:
+ enable-cache: true
- run: uv build --package ${{ github.event.inputs.package }} --out-dir dist/
working-directory: python
- name: Publish package to PyPI