FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
agent-framework/.github/workflows/python-lab-tests.yml at main · microsoft/agent-framework · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
microsoft
/
agent-framework
Public
Notifications
You must be signed in to change notification settings
Fork
2.2k
Star
13.2k
Code
Issues
501
Pull requests
142
Discussions
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
agent-framework
/
.github
/
workflows
/
python-lab-tests.yml
Copy path
View runs
More file actions
More file actions
Latest commit
History
History
History
104 lines (93 loc) · 3.26 KB
Breadcrumbs
agent-framework
/
.github
/
workflows
/
python-lab-tests.yml
Copy path
File metadata and controls
104 lines (93 loc) · 3.26 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
name
:
Python - Lab Tests
on
:
workflow_dispatch
:
pull_request
:
branches
:
["main"]
paths
:
-
"
python/packages/lab/**
"
merge_group
:
branches
:
["main"]
schedule
:
-
cron
:
"
0 0 * * *
"
#
Run at midnight UTC daily
env
:
#
Configure a constant location for the uv cache
UV_CACHE_DIR
:
/tmp/.uv-cache
jobs
:
paths-filter
:
runs-on
:
ubuntu-latest
permissions
:
contents
:
read
pull-requests
:
read
outputs
:
pythonChanges
:
${{ steps.filter.outputs.python}}
steps
:
-
uses
:
actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
#
v7.0.1
-
uses
:
dorny/paths-filter@7b450fff21473bca461d4b92ce414b9d0420d706
#
v4.0.2
id
:
filter
with
:
filters
:
|
python:
- 'python/**'
- '!python/AGENTS.md'
- '!python/**/AGENTS.md'
- '!python/.github/skills/*'
- '!python/.github/skills/**'
#
run only if 'python' files were changed
-
name
:
python tests
if
:
steps.filter.outputs.python == 'true'
run
:
echo "Python file"
#
run only if not 'python' files were changed
-
name
:
not python tests
if
:
steps.filter.outputs.python != 'true'
run
:
echo "NOT python file"
python-lab-tests
:
name
:
Python Lab Tests
needs
:
paths-filter
if
:
needs.paths-filter.outputs.pythonChanges == 'true'
runs-on
:
${{ matrix.os }}
strategy
:
fail-fast
:
true
matrix
:
python-version
:
["3.10", "3.11", "3.12", "3.13", "3.14"]
#
TODO(ekzhu): re-enable macos-latest when this is fixed: https://github.com/actions/runner-images/issues/11881
os
:
[ubuntu-latest, windows-latest]
env
:
UV_PYTHON
:
${{ matrix.python-version }}
permissions
:
contents
:
read
defaults
:
run
:
working-directory
:
python
steps
:
-
uses
:
actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
#
v7.0.1
-
name
:
Set up python and install the project
id
:
python-setup
uses
:
./.github/actions/python-setup
with
:
python-version
:
${{ matrix.python-version }}
os
:
${{ runner.os }}
exclude-packages
:
${{ matrix.python-version == '3.10' && 'agent-framework-github-copilot agent-framework-azure-cosmos-memory' || '' }}
env
:
#
Configure a constant location for the uv cache
UV_CACHE_DIR
:
/tmp/.uv-cache
#
Lab specific tests
-
name
:
Run lab tests
run
:
cd packages/lab && uv run poe test
-
name
:
Run resource-intensive lab tests
run
:
cd packages/lab && uv run pytest -m "resource_intensive and not integration" --junitxml=test-results-resource-intensive.xml
-
name
:
Run lab lint
run
:
cd packages/lab && uv run poe lint
-
name
:
Run lab format check
run
:
cd packages/lab && uv run poe fmt --check
-
name
:
Run lab type checking
run
:
cd packages/lab && uv run poe pyright
#
Surface failing tests
-
name
:
Surface failing tests
if
:
always()
uses
:
pmeier/pytest-results-action@20b595761ba9bf89e115e875f8bc863f913bc8ad
#
v0.7.2
with
:
path
:
./python/packages/lab/**.xml
summary
:
true
display-options
:
fEX
fail-on-empty
:
false
title
:
Lab Test Results
Back
|
FazBrowse Home
|
New Git URL