File tree 1 file changed +55
-0
lines changed
1 file changed +55
-0
lines changed Original file line number Diff line number Diff line change
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
You can’t perform that action at this time.
0 commit comments