Skip to content

Commit a4f3c56

Browse files
committed
Bubble sort test
1 parent 76b9113 commit a4f3c56

File tree

1 file changed

+19
-23
lines changed

1 file changed

+19
-23
lines changed
Lines changed: 19 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,44 @@
1-
name: Codeflash
1+
name: CodeFlash
22

33
on:
44
pull_request:
55
paths:
6-
# So that this workflow only runs when code within the target module is modified
7-
- "skyvern/**"
6+
- "codeflash/**"
87
workflow_dispatch:
98

109
concurrency:
11-
# Any new push to the PR will cancel the previous run, so that only the latest code is optimized
1210
group: ${{ github.workflow }}-${{ github.ref }}
1311
cancel-in-progress: true
1412

1513
jobs:
1614
optimize:
17-
name: Optimize new Python code in this PR
18-
# Don't run codeflash on codeflash-ai[bot] commits, prevent duplicate optimizations
15+
name: Optimize new code in this PR
1916
if: ${{ github.actor != 'codeflash-ai[bot]' }}
2017
runs-on: ubuntu-latest
2118
env:
19+
CODEFLASH_AIS_SERVER: prod
2220
CODEFLASH_API_KEY: ${{ secrets.CODEFLASH_API_KEY }}
2321
CODEFLASH_PR_NUMBER: ${{ github.event.number }}
24-
22+
COLUMNS: 110
2523
steps:
2624
- uses: actions/checkout@v4
2725
with:
2826
fetch-depth: 0
29-
- name: Set up Python
30-
uses: actions/setup-python@v5
27+
28+
- name: Set up Python 3.11 for CLI
29+
uses: astral-sh/setup-uv@v5
3130
with:
32-
python-version: "3.11"
33-
- name: Install Project Dependencies
34-
run: |
35-
python -m pip install --upgrade pip
36-
pip install poetry
37-
poetry install --all-extras
38-
poetry add codeflash
39-
- name: create test dir
31+
python-version: 3.11.6
32+
33+
- name: Install dependencies (CLI)
4034
run: |
41-
mkdir -p codeflash-tests
35+
uv tool install poetry
36+
uv venv
37+
source .venv/bin/activate
38+
poetry install --with dev
39+
4240
- name: Run Codeflash to optimize code
41+
id: optimize_code
4342
run: |
44-
poetry env use python
45-
poetry run codeflash
46-
- name: remove test dir
47-
run: |
48-
rm -rf codeflash-tests
43+
source .venv/bin/activate
44+
poetry run codeflash

0 commit comments

Comments
 (0)