Skip to content

Commit 0a069ef

Browse files
misrasaurabh1KRRT7
authored andcommitted
try this
Signed-off-by: Saurabh Misra <[email protected]>
1 parent bc2dcf5 commit 0a069ef

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

.github/workflows/codeflash.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,17 @@ jobs:
2626
with:
2727
enable-cache: true
2828
- name: 📦 Install Dependencies
29-
run: uv sync --package pydantic-ai-slim
29+
run: make install
30+
- name: Functions to Optimize
31+
shell: python
32+
id: discover_step
33+
run: |
34+
from codeflash.cli_cmds.cli import parse_args, process_pyproject_config
35+
import os
36+
args = process_pyproject_config(parse_args())
37+
t = TestConfig(tests_root=args.tests_root, tests_project_rootdir=args.test_project_root, project_root_path=args.project_root, test_framework=args.test_framework, pytest_cmd=args.pytest_cmd,)
38+
f = get_functions_to_optimize(test_cfg=t, ignore_paths=args.ignore_paths, project_root=args.project_root, module_root=args.module_root,optimize_all=None, replay_test=None, file=None, only_get_this_function=None)
39+
functions = " ".join([fto.function_name for ftol in f[0].values() for fto in ftol])
40+
open(os.environ.get('GITHUB_OUTPUT'), 'a').write(f"functions_to_optimize={functions}")
3041
- name: ⚡️Codeflash Optimization
31-
run: uv run codeflash
42+
run: uv run codeflash optimize --only-functions ${{ steps.discover_step.outputs.functions_to_optimize }} -m pytest --inline-snapshot=disable tests/test_examples.py

0 commit comments

Comments
 (0)