Skip to content

Commit 0a014e6

Browse files
committed
Update CI
1 parent a95df2f commit 0a014e6

File tree

4 files changed

+88
-10
lines changed

4 files changed

+88
-10
lines changed

.github/workflows/ci-checks.yaml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,13 @@ jobs:
2626
with:
2727
python-version: ${{ env.MIN_PYTHON_VERSION }}
2828

29-
- name: Install dependencies
30-
run: pip install -r requirements-dev.txt
29+
- name: Install uv
30+
uses: astral-sh/setup-uv@v4
31+
with:
32+
enable-cache: true
33+
34+
- name: Install the project
35+
run: uv sync --all-extras --dev
3136

3237
- name: Run pre-commit
33-
run: pre-commit run --all-files
38+
run: uv run pre-commit run --all-files

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ dev = [
1212
"black>=24.10.0",
1313
"ipykernel>=6.29.5",
1414
"pre-commit>=4.0.1",
15+
"pygments>=2.18.0",
1516
"ruff>=0.8.1",
1617
]
1718

text_2_sql/autogen/Iteration 5 - Agentic Vector Based Text2SQL.ipynb

Lines changed: 77 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,17 @@
2424
"cell_type": "code",
2525
"execution_count": null,
2626
"metadata": {},
27-
"outputs": [],
27+
"outputs": [
28+
{
29+
"ename": "",
30+
"evalue": "",
31+
"output_type": "error",
32+
"traceback": [
33+
"\u001b[1;31mThe kernel failed to start due to the missing module 'pygments.formatters.terminal256'. Consider installing this module.\n",
34+
"\u001b[1;31mClick <a href='https://aka.ms/kernelFailuresMissingModule'>here</a> for more info."
35+
]
36+
}
37+
],
2838
"source": [
2939
"import dotenv\n",
3040
"import logging\n",
@@ -36,7 +46,17 @@
3646
"cell_type": "code",
3747
"execution_count": null,
3848
"metadata": {},
39-
"outputs": [],
49+
"outputs": [
50+
{
51+
"ename": "",
52+
"evalue": "",
53+
"output_type": "error",
54+
"traceback": [
55+
"\u001b[1;31mThe kernel failed to start due to the missing module 'pygments.formatters.terminal256'. Consider installing this module.\n",
56+
"\u001b[1;31mClick <a href='https://aka.ms/kernelFailuresMissingModule'>here</a> for more info."
57+
]
58+
}
59+
],
4060
"source": [
4161
"logging.basicConfig(level=logging.INFO)"
4262
]
@@ -45,7 +65,17 @@
4565
"cell_type": "code",
4666
"execution_count": null,
4767
"metadata": {},
48-
"outputs": [],
68+
"outputs": [
69+
{
70+
"ename": "",
71+
"evalue": "",
72+
"output_type": "error",
73+
"traceback": [
74+
"\u001b[1;31mThe kernel failed to start due to the missing module 'pygments.formatters.terminal256'. Consider installing this module.\n",
75+
"\u001b[1;31mClick <a href='https://aka.ms/kernelFailuresMissingModule'>here</a> for more info."
76+
]
77+
}
78+
],
4979
"source": [
5080
"dotenv.load_dotenv()"
5181
]
@@ -61,7 +91,17 @@
6191
"cell_type": "code",
6292
"execution_count": null,
6393
"metadata": {},
64-
"outputs": [],
94+
"outputs": [
95+
{
96+
"ename": "",
97+
"evalue": "",
98+
"output_type": "error",
99+
"traceback": [
100+
"\u001b[1;31mThe kernel failed to start due to the missing module 'pygments.formatters.terminal256'. Consider installing this module.\n",
101+
"\u001b[1;31mClick <a href='https://aka.ms/kernelFailuresMissingModule'>here</a> for more info."
102+
]
103+
}
104+
],
65105
"source": [
66106
"agentic_text_2_sql = AutoGenText2Sql(target_engine=\"TSQL\", engine_specific_rules=\"Use TOP X to limit the number of rows returned instead of LIMIT X. NEVER USE LIMIT X as it produces a syntax error.\").agentic_flow"
67107
]
@@ -70,7 +110,17 @@
70110
"cell_type": "code",
71111
"execution_count": null,
72112
"metadata": {},
73-
"outputs": [],
113+
"outputs": [
114+
{
115+
"ename": "",
116+
"evalue": "",
117+
"output_type": "error",
118+
"traceback": [
119+
"\u001b[1;31mThe kernel failed to start due to the missing module 'pygments.formatters.terminal256'. Consider installing this module.\n",
120+
"\u001b[1;31mClick <a href='https://aka.ms/kernelFailuresMissingModule'>here</a> for more info."
121+
]
122+
}
123+
],
74124
"source": [
75125
"result = agentic_text_2_sql.run_stream(task=\"What are the total number of sales within 2008?\")"
76126
]
@@ -79,7 +129,17 @@
79129
"cell_type": "code",
80130
"execution_count": null,
81131
"metadata": {},
82-
"outputs": [],
132+
"outputs": [
133+
{
134+
"ename": "",
135+
"evalue": "",
136+
"output_type": "error",
137+
"traceback": [
138+
"\u001b[1;31mThe kernel failed to start due to the missing module 'pygments.formatters.terminal256'. Consider installing this module.\n",
139+
"\u001b[1;31mClick <a href='https://aka.ms/kernelFailuresMissingModule'>here</a> for more info."
140+
]
141+
}
142+
],
83143
"source": [
84144
"await Console(result)"
85145
]
@@ -88,7 +148,17 @@
88148
"cell_type": "code",
89149
"execution_count": null,
90150
"metadata": {},
91-
"outputs": [],
151+
"outputs": [
152+
{
153+
"ename": "",
154+
"evalue": "",
155+
"output_type": "error",
156+
"traceback": [
157+
"\u001b[1;31mThe kernel failed to start due to the missing module 'pygments.formatters.terminal256'. Consider installing this module.\n",
158+
"\u001b[1;31mClick <a href='https://aka.ms/kernelFailuresMissingModule'>here</a> for more info."
159+
]
160+
}
161+
],
92162
"source": []
93163
}
94164
],

uv.lock

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)