@@ -2,6 +2,9 @@ name: Python tests
2
2
3
3
on : [pull_request]
4
4
5
+ env :
6
+ UV_SYSTEM_PYTHON : 1
7
+
5
8
jobs :
6
9
build-ubuntu :
7
10
runs-on : ubuntu-latest
21
24
python-version : ${{ matrix.python-version }}
22
25
23
26
# Setup venv
24
- - name : Setup venv + uv
27
+ - name : Setup uv
25
28
run : |
26
29
pip install --upgrade uv
27
- uv venv
28
30
29
31
# Install dependencies
30
32
- name : Install dependencies
@@ -36,89 +38,89 @@ jobs:
36
38
# See https://stackoverflow.com/a/62112985
37
39
- name : Import tests
38
40
run : |
39
- uv run pytest ./tests/test_import.py
41
+ pytest ./tests/test_import.py
40
42
if : ${{ success() || failure() }}
41
43
42
44
- name : Agent tests
43
45
run : |
44
- uv run pytest ./tests/test_agents.py
46
+ pytest ./tests/test_agents.py
45
47
if : ${{ success() || failure() }}
46
48
47
49
- name : Default tools tests
48
50
run : |
49
- uv run pytest ./tests/test_default_tools.py
51
+ pytest ./tests/test_default_tools.py
50
52
if : ${{ success() || failure() }}
51
53
52
54
# - name: Docs tests # Disabled for now (slow test + requires API keys)
53
55
# run: |
54
- # uv run pytest ./tests/test_all_docs.py
56
+ # pytest ./tests/test_all_docs.py
55
57
56
58
- name : CLI tests
57
59
run : |
58
- uv run pytest ./tests/test_cli.py
60
+ pytest ./tests/test_cli.py
59
61
if : ${{ success() || failure() }}
60
62
61
63
- name : Final answer tests
62
64
run : |
63
- uv run pytest ./tests/test_final_answer.py
65
+ pytest ./tests/test_final_answer.py
64
66
if : ${{ success() || failure() }}
65
67
66
68
- name : Models tests
67
69
run : |
68
- uv run pytest ./tests/test_models.py
70
+ pytest ./tests/test_models.py
69
71
if : ${{ success() || failure() }}
70
72
71
73
- name : Memory tests
72
74
run : |
73
- uv run pytest ./tests/test_memory.py
75
+ pytest ./tests/test_memory.py
74
76
if : ${{ success() || failure() }}
75
77
76
78
- name : Monitoring tests
77
79
run : |
78
- uv run pytest ./tests/test_monitoring.py
80
+ pytest ./tests/test_monitoring.py
79
81
if : ${{ success() || failure() }}
80
82
81
83
- name : Local Python executor tests
82
84
run : |
83
- uv run pytest ./tests/test_local_python_executor.py
85
+ pytest ./tests/test_local_python_executor.py
84
86
if : ${{ success() || failure() }}
85
87
86
88
- name : Remote executor tests
87
89
run : |
88
- uv run pytest ./tests/test_remote_executors.py
90
+ pytest ./tests/test_remote_executors.py
89
91
if : ${{ success() || failure() }}
90
92
91
93
- name : Search tests
92
94
run : |
93
- uv run pytest ./tests/test_search.py
95
+ pytest ./tests/test_search.py
94
96
if : ${{ success() || failure() }}
95
97
96
98
- name : Tools tests
97
99
run : |
98
- uv run pytest ./tests/test_tools.py
100
+ pytest ./tests/test_tools.py
99
101
if : ${{ success() || failure() }}
100
102
101
103
- name : Tool validation tests
102
104
run : |
103
- uv run pytest ./tests/test_tool_validation.py
105
+ pytest ./tests/test_tool_validation.py
104
106
if : ${{ success() || failure() }}
105
107
106
108
- name : Types tests
107
109
run : |
108
- uv run pytest ./tests/test_types.py
110
+ pytest ./tests/test_types.py
109
111
if : ${{ success() || failure() }}
110
112
111
113
- name : Utils tests
112
114
run : |
113
- uv run pytest ./tests/test_utils.py
115
+ pytest ./tests/test_utils.py
114
116
if : ${{ success() || failure() }}
115
117
116
118
- name : Gradio UI tests
117
119
run : |
118
- uv run pytest ./tests/test_gradio_ui.py
120
+ pytest ./tests/test_gradio_ui.py
119
121
if : ${{ success() || failure() }}
120
122
121
123
- name : Function type hints utils tests
122
124
run : |
123
- uv run pytest ./tests/test_function_type_hints_utils.py
125
+ pytest ./tests/test_function_type_hints_utils.py
124
126
if : ${{ success() || failure() }}
0 commit comments