Skip to content

Commit 63a05d9

Browse files
misrasaurabh1KRRT7
authored andcommitted
run with the right python
Signed-off-by: Saurabh Misra <[email protected]>
1 parent 275cb7a commit 63a05d9

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/codeflash.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,16 @@ jobs:
3131
- name: 📦 Install Dependencies
3232
run: uv sync --frozen --all-extras --all-packages --group lint --group docs
3333
- name: Functions to Optimize
34-
shell: python
3534
id: discover_step
3635
run: |
36+
uv run python -c "
3737
from codeflash.cli_cmds.cli import parse_args, process_pyproject_config
3838
import os
3939
args = process_pyproject_config(parse_args())
4040
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,)
4141
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)
42-
functions = " ".join([fto.function_name for ftol in f[0].values() for fto in ftol])
43-
open(os.environ.get('GITHUB_OUTPUT'), 'a').write(f"functions_to_optimize={functions}")
42+
functions = ' '.join([fto.function_name for ftol in f[0].values() for fto in ftol])
43+
open(os.environ.get('GITHUB_OUTPUT'), 'a').write(f'functions_to_optimize={functions}')
44+
"
4445
- name: ⚡️Codeflash Optimization
4546
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)