Skip to content

Commit 3b2bf82

Browse files
authored
feat: add integration workflow for testing multiple packages (#5412)
1 parent 59e392c commit 3b2bf82

File tree

1 file changed

+55
-0
lines changed

1 file changed

+55
-0
lines changed

.github/workflows/integration.yml

+55
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: Integration
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
branch:
7+
description: 'Branch to run tests'
8+
required: true
9+
type: string
10+
11+
jobs:
12+
test:
13+
runs-on: ubuntu-latest
14+
environment: integration
15+
strategy:
16+
matrix:
17+
package:
18+
[
19+
"./packages/autogen-core",
20+
"./packages/autogen-ext",
21+
"./packages/autogen-agentchat",
22+
]
23+
steps:
24+
- uses: actions/checkout@v4
25+
with:
26+
ref: ${{ github.event.inputs.branch }}
27+
- uses: astral-sh/setup-uv@v5
28+
with:
29+
enable-cache: true
30+
version: "0.5.18"
31+
- uses: actions/setup-python@v5
32+
with:
33+
python-version: "3.11"
34+
- name: Run uv sync
35+
run: |
36+
uv sync --locked --all-extras
37+
echo "PKG_NAME=$(basename '${{ matrix.package }}')" >> $GITHUB_ENV
38+
39+
working-directory: ./python
40+
- name: Run task
41+
run: |
42+
source ${{ github.workspace }}/python/.venv/bin/activate
43+
poe --directory ${{ matrix.package }} test
44+
working-directory: ./python
45+
46+
- name: Move coverage file
47+
run: |
48+
mv ${{ matrix.package }}/coverage.xml coverage_${{ env.PKG_NAME }}.xml
49+
working-directory: ./python
50+
51+
- name: Upload coverage artifact
52+
uses: actions/upload-artifact@v4
53+
with:
54+
name: coverage-${{ env.PKG_NAME }}
55+
path: ./python/coverage_${{ env.PKG_NAME }}.xml

0 commit comments

Comments
 (0)