Skip to content

Commit 3bd87b9

Browse files
authored
Merge branch 'main' into release/dotnet/0.2.2
2 parents 0717bf4 + 4aec53c commit 3bd87b9

File tree

588 files changed

+47720
-19959
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

588 files changed

+47720
-19959
lines changed

.gitattributes

+2-4
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,8 @@
3333
*.tsx text
3434
*.xml text
3535
*.xhtml text diff=html
36-
3736
# Docker
3837
Dockerfile text eol=lf
39-
4038
# Documentation
4139
*.ipynb text
4240
*.markdown text diff=markdown eol=lf
@@ -62,7 +60,6 @@ NEWS text eol=lf
6260
readme text eol=lf
6361
*README* text eol=lf
6462
TODO text
65-
6663
# Configs
6764
*.cnf text eol=lf
6865
*.conf text eol=lf
@@ -84,8 +81,9 @@ yarn.lock text -diff
8481
browserslist text
8582
Makefile text eol=lf
8683
makefile text eol=lf
87-
8884
# Images
8985
*.png filter=lfs diff=lfs merge=lfs -text
9086
*.jpg filter=lfs diff=lfs merge=lfs -text
9187
*.jpeg filter=lfs diff=lfs merge=lfs -text
88+
python/packages/autogen-magentic-one/imgs/autogen-magentic-one-example.png filter=lfs diff=lfs merge=lfs -text
89+
python/packages/autogen-magentic-one/imgs/autogen-magentic-one-agents.png filter=lfs diff=lfs merge=lfs -text

.github/ISSUE_TEMPLATE/bug_report.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Bug Report
22
description: Report a bug
3-
labels: ["bug"]
3+
type: "bug"
44

55
body:
66
- type: textarea

.github/ISSUE_TEMPLATE/feature_request.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Feature Request
22
description: Request a new feature or enhancement
3-
labels: ["enhancement"]
3+
type: "feature"
44

55
body:
66
- type: textarea

.github/workflows/checks.yml

+27-15
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ jobs:
1515
runs-on: ubuntu-latest
1616
steps:
1717
- uses: actions/checkout@v4
18-
- run: curl -LsSf https://astral.sh/uv/install.sh | sh
18+
- uses: astral-sh/setup-uv@v3
19+
with:
20+
enable-cache: true
1921
- uses: actions/setup-python@v5
2022
with:
2123
python-version: "3.11"
@@ -31,7 +33,9 @@ jobs:
3133
runs-on: ubuntu-latest
3234
steps:
3335
- uses: actions/checkout@v4
34-
- run: curl -LsSf https://astral.sh/uv/install.sh | sh
36+
- uses: astral-sh/setup-uv@v3
37+
with:
38+
enable-cache: true
3539
- uses: actions/setup-python@v5
3640
with:
3741
python-version: "3.11"
@@ -57,7 +61,9 @@ jobs:
5761
]
5862
steps:
5963
- uses: actions/checkout@v4
60-
- run: curl -LsSf https://astral.sh/uv/install.sh | sh
64+
- uses: astral-sh/setup-uv@v3
65+
with:
66+
enable-cache: true
6167
- uses: actions/setup-python@v5
6268
with:
6369
python-version: "3.11"
@@ -83,7 +89,9 @@ jobs:
8389
]
8490
steps:
8591
- uses: actions/checkout@v4
86-
- run: curl -LsSf https://astral.sh/uv/install.sh | sh
92+
- uses: astral-sh/setup-uv@v3
93+
with:
94+
enable-cache: true
8795
- uses: actions/setup-python@v5
8896
with:
8997
python-version: "3.11"
@@ -107,7 +115,9 @@ jobs:
107115
]
108116
steps:
109117
- uses: actions/checkout@v4
110-
- run: curl -LsSf https://astral.sh/uv/install.sh | sh
118+
- uses: astral-sh/setup-uv@v3
119+
with:
120+
enable-cache: true
111121
- uses: actions/setup-python@v5
112122
with:
113123
python-version: "3.11"
@@ -129,7 +139,9 @@ jobs:
129139
package: ["./packages/autogen-core"]
130140
steps:
131141
- uses: actions/checkout@v4
132-
- run: curl -LsSf https://astral.sh/uv/install.sh | sh
142+
- uses: astral-sh/setup-uv@v3
143+
with:
144+
enable-cache: true
133145
- uses: actions/setup-python@v5
134146
with:
135147
python-version: "3.11"
@@ -145,7 +157,9 @@ jobs:
145157
runs-on: ubuntu-latest
146158
steps:
147159
- uses: actions/checkout@v4
148-
- run: curl -LsSf https://astral.sh/uv/install.sh | sh
160+
- uses: astral-sh/setup-uv@v3
161+
with:
162+
enable-cache: true
149163
- uses: actions/setup-python@v5
150164
with:
151165
python-version: "3.11"
@@ -156,11 +170,9 @@ jobs:
156170
source ${{ github.workspace }}/python/.venv/bin/activate
157171
poe gen-proto
158172
working-directory: ./python
159-
- name: Evaluate if there are changes
160-
run: |
161-
if [[ `git status --porcelain` ]]; then
162-
echo "There are changes that need to be generated and commit for the proto files"
163-
git --no-pager diff
164-
exit 1
165-
fi
166-
shell: bash
173+
- name: Check if there are uncommited changes
174+
id: changes
175+
uses: UnicornGlobal/[email protected]
176+
- name: Process changes
177+
if: steps.changes.outputs.changed == 1
178+
run: echo "There are changes in the proto files. Please commit them."

.github/workflows/docs.yml

+52-15
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@ on:
66
push:
77
branches:
88
- main
9-
- staging
9+
10+
pull_request:
11+
branches:
12+
- main
1013

1114
# Allows you to run this workflow manually from the Actions tab
1215
workflow_dispatch:
@@ -17,38 +20,71 @@ permissions:
1720
pages: write
1821
id-token: write
1922

20-
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
21-
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
2223
concurrency:
23-
group: "pages"
24-
cancel-in-progress: false
24+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
25+
cancel-in-progress: true
2526

2627
jobs:
2728
build-04:
2829
runs-on: ubuntu-latest
30+
strategy:
31+
matrix:
32+
version:
33+
[
34+
{ ref: main, dest-dir: dev },
35+
{ ref: "v0.4.0.dev0", dest-dir: "0.4.0.dev0" },
36+
{ ref: "v0.4.0.dev1", dest-dir: "0.4.0.dev1" },
37+
{ ref: "v0.4.0.dev2", dest-dir: "0.4.0.dev2" },
38+
{ ref: "v0.4.0.dev3", dest-dir: "0.4.0.dev3" },
39+
{ ref: "v0.4.0.dev4", dest-dir: "0.4.0.dev4" },
40+
{ ref: "v0.4.0.dev5", dest-dir: "0.4.0.dev5" },
41+
{ ref: "v0.4.0.dev6", dest-dir: "0.4.0.dev6" },
42+
]
2943
steps:
3044
- name: Checkout
3145
uses: actions/checkout@v4
3246
with:
33-
lfs: 'true'
34-
- run: curl -LsSf https://astral.sh/uv/install.sh | sh
47+
lfs: "true"
48+
ref: ${{ matrix.version.ref }}
49+
- uses: astral-sh/setup-uv@v3
50+
with:
51+
enable-cache: true
3552
- uses: actions/setup-python@v5
3653
with:
37-
python-version: '3.11'
54+
python-version: "3.11"
3855
- run: |
3956
uv sync --locked --all-extras
4057
source .venv/bin/activate
4158
poe --directory ./packages/autogen-core docs-build
42-
mkdir -p docs-staging/dev/
43-
mv ./packages/autogen-core/docs/build/* docs-staging/dev/
59+
mkdir -p docs-staging/${{ matrix.version.dest-dir }}/
60+
mv ./packages/autogen-core/docs/build/* docs-staging/${{ matrix.version.dest-dir }}/
4461
working-directory: ./python
62+
env:
63+
PY_DOCS_DIR: ${{ matrix.version.dest-dir }}/
64+
PY_SWITCHER_VERSION: ${{ matrix.version.dest-dir }}
65+
- uses: actions/upload-artifact@v4
66+
with:
67+
path: "./python/docs-staging"
68+
name: "${{ matrix.version.dest-dir }}-docs"
69+
70+
gen-redirects:
71+
runs-on: ubuntu-latest
72+
steps:
73+
- name: Checkout
74+
uses: actions/checkout@v4
75+
with:
76+
lfs: "true"
77+
- uses: actions/setup-python@v5
78+
with:
79+
python-version: "3.11"
4580
- name: generate redirects
4681
run: |
82+
mkdir -p python/docs-staging/
4783
python python/packages/autogen-core/docs/redirects/redirects.py python/docs-staging
4884
- uses: actions/upload-artifact@v4
4985
with:
5086
path: "./python/docs-staging"
51-
name: "04-docs"
87+
name: "redirects"
5288

5389
build-02:
5490
runs-on: ubuntu-latest
@@ -112,8 +148,8 @@ jobs:
112148
name: github-pages
113149
url: ${{ steps.deployment.outputs.page_url }}
114150
runs-on: ubuntu-latest
115-
needs: [build-02, build-04]
116-
if: ${{ needs.build-02.result == 'success' && needs.build-04.result == 'success' && github.ref == 'refs/heads/main' }}
151+
needs: [build-02, build-04, gen-redirects]
152+
if: ${{ needs.build-02.result == 'success' && needs.build-04.result == 'success' && needs.gen-redirects.result == 'success' && github.ref == 'refs/heads/main' }}
117153
steps:
118154
- uses: actions/download-artifact@v4
119155
with:
@@ -122,8 +158,9 @@ jobs:
122158
- name: Copy 02-docs
123159
run: |
124160
mkdir -p deploy/
125-
cp -r artifacts/02-docs/* deploy/
126-
cp -r artifacts/04-docs/* deploy/
161+
for dir in artifacts/*; do
162+
cp -r $dir/* deploy/
163+
done
127164
128165
- name: Upload artifact
129166
uses: actions/upload-pages-artifact@v3

.github/workflows/dotnet-build-test-packages.yml

-45
This file was deleted.
+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Remove awaiting-op-response label if op responded
2+
on:
3+
issue_comment:
4+
types: [created]
5+
jobs:
6+
label_issues:
7+
runs-on: ubuntu-latest
8+
permissions:
9+
issues: write
10+
pull-requests: write
11+
steps:
12+
- run: gh issue edit "$NUMBER" --remove-label "$LABELS"
13+
if: ${{ github.event.comment.user.login == github.event.issue.user.login && contains(github.event.issue.labels.*.name, 'awaiting-op-response') }}
14+
env:
15+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
16+
GH_REPO: ${{ github.repository }}
17+
NUMBER: ${{ github.event.issue.number }}
18+
LABELS: awaiting-op-response
+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: AgentChat 0.2 Pypi Package
2+
3+
on:
4+
push:
5+
tags:
6+
- "0.2.*"
7+
workflow_dispatch:
8+
inputs:
9+
branch:
10+
description: 'Branch to deploy the package'
11+
required: true
12+
default: '0.2'
13+
permissions: {}
14+
jobs:
15+
deploy:
16+
strategy:
17+
matrix:
18+
os: ["ubuntu-latest"]
19+
python-version: [3.10]
20+
runs-on: ${{ matrix.os }}
21+
environment:
22+
name: package
23+
url: https://pypi.org/p/autogen-agentchat
24+
permissions:
25+
id-token: write
26+
steps:
27+
- name: Checkout
28+
uses: actions/checkout@v4
29+
with:
30+
ref: ${{ github.event.inputs.branch }}
31+
- name: Build
32+
shell: pwsh
33+
run: |
34+
pip install twine
35+
python setup.py sdist bdist_wheel
36+
- name: Publish package to PyPI
37+
uses: pypa/gh-action-pypi-publish@release/v1

.github/workflows/single-python-package.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@ jobs:
3232
ref: ${{ github.event.inputs.ref }}
3333
# Require ref to be a tag
3434
- run: git show-ref --verify refs/tags/${{ github.event.inputs.ref }}
35-
- run: curl -LsSf https://astral.sh/uv/install.sh | sh
35+
- uses: astral-sh/setup-uv@v3
36+
with:
37+
enable-cache: true
3638
- run: uv build --package ${{ github.event.inputs.package }} --out-dir dist/
3739
working-directory: python
3840
- name: Publish package to PyPI

0 commit comments

Comments
 (0)