File tree Expand file tree Collapse file tree 10 files changed +13
-104
lines changed Expand file tree Collapse file tree 10 files changed +13
-104
lines changed Original file line number Diff line number Diff line change 3131 with :
3232 python-version : 3.11.6
3333
34- - name : Install dependencies (CLI)
35- run : |
36- uv tool install poetry
37- uv venv
38- source .venv/bin/activate
39- poetry install --with dev
40-
4134 - name : Run Codeflash to optimize code
4235 id : optimize_code
4336 run : |
44- source .venv/bin/activate
45- poetry run codeflash
37+ uv run codeflash
Original file line number Diff line number Diff line change @@ -22,33 +22,10 @@ jobs:
2222 fetch-depth : 0
2323 token : ${{ secrets.GITHUB_TOKEN }}
2424
25- # - name: Set up Python 3.11 for CLI
26- # uses: astral-sh/setup-uv@v5
27- # with:
28- # python-version: 3.11.6
29-
30- # - name: Install dependencies (CLI)
31- # run: |
32- # uv tool install poetry
33- # uv venv
34- # source .venv/bin/activate
35- # poetry install --with dev
36-
37- - name : Remove .git
38- run : |
39- if [ -d ".git" ]; then
40- echo ".git directory exists!"
41- sudo rm -rf .git
42- if [ -d ".git" ]; then
43- echo ".git directory still exists after removal attempt!"
44- exit 1
45- else
46- echo ".git directory successfully removed."
47- fi
48- else
49- echo ".git directory does not exist. Nothing to remove."
50- exit 1
51- fi
25+ - name : Set up uv Python 3.11 for CLI
26+ uses : astral-sh/setup-uv@v5
27+ with :
28+ python-version : 3.11.6
5229
5330 - name : Run Codeflash to optimize code
5431 id : optimize_code
Original file line number Diff line number Diff line change @@ -22,18 +22,11 @@ jobs:
2222 fetch-depth : 0
2323 token : ${{ secrets.GITHUB_TOKEN }}
2424
25- - name : Set up Python 3.11 for CLI
25+ - name : Set up uv Python 3.11 for CLI
2626 uses : astral-sh/setup-uv@v5
2727 with :
2828 python-version : 3.11.6
2929
30- # - name: Install dependencies (CLI)
31- # run: |
32- # uv tool install poetry
33- # uv venv
34- # source .venv/bin/activate
35- # poetry install --with dev
36-
3730 - name : Run Codeflash to optimize code
3831 id : optimize_code
3932 run : |
Original file line number Diff line number Diff line change 2525 with :
2626 python-version : 3.11.6
2727
28- - name : Install dependencies (CLI)
29- run : |
30- uv tool install poetry
31- uv venv
32- source .venv/bin/activate
33- poetry install --with dev
34- poetry add black # my-best-repo in end_to_end_test_coverage.py is configured to use black
35-
3628 - name : Run Codeflash to optimize code
3729 id : optimize_code
3830 run : |
39- source .venv/bin/activate
40- poetry run python tests/scripts/end_to_end_test_coverage.py
31+ uv run --with black -p 3.11 python tests/scripts/end_to_end_test_coverage.py
Original file line number Diff line number Diff line change 2727 with :
2828 python-version : 3.11.6
2929
30- - name : Install dependencies (CLI)
31- run : |
32- uv tool install poetry
33- uv venv
34- source .venv/bin/activate
35- poetry install --with dev
36-
3730 - name : Run Codeflash to optimize code
3831 id : optimize_code
3932 run : |
4033 source .venv/bin/activate
41- poetry run python tests/scripts/end_to_end_test_futurehouse.py
34+ uv run -p 3.11 python tests/scripts/end_to_end_test_futurehouse.py
Original file line number Diff line number Diff line change 2727 with :
2828 python-version : 3.11.6
2929
30- - name : Install dependencies (CLI)
31- run : |
32- uv tool install poetry
33- uv venv
34- source .venv/bin/activate
35- poetry install --with dev
36-
3730 - name : Run Codeflash to optimize code
3831 id : optimize_code
3932 run : |
4033 source .venv/bin/activate
41- poetry run python tests/scripts/end_to_end_test_init_optimization.py
34+ uv run -p 3.11 python tests/scripts/end_to_end_test_init_optimization.py
Original file line number Diff line number Diff line change 2727 with :
2828 python-version : 3.11.6
2929
30- - name : Install dependencies (CLI)
31- run : |
32- uv tool install poetry
33- uv venv
34- source .venv/bin/activate
35- poetry install --with dev
36-
3730 - name : Run Codeflash to optimize code
3831 id : optimize_code
3932 run : |
40- source .venv/bin/activate
41- poetry run python tests/scripts/end_to_end_test_tracer_replay.py
33+ uv run -p 3.11 python tests/scripts/end_to_end_test_tracer_replay.py
Original file line number Diff line number Diff line change 2727 with :
2828 python-version : 3.11.6
2929
30- - name : Install dependencies (CLI)
31- run : |
32- uv tool install poetry
33- uv venv
34- source .venv/bin/activate
35- poetry install --with dev
36-
3730 - name : Run Codeflash to optimize code
3831 id : optimize_code
3932 run : |
40- source .venv/bin/activate
41- poetry run python tests/scripts/end_to_end_test_topological_sort.py
33+ uv run -p 3.11 python tests/scripts/end_to_end_test_topological_sort.py
Original file line number Diff line number Diff line change 1818
1919 - name : Install uv
2020 uses : astral-sh/setup-uv@v5
21- with :
22- version : " 0.5.30"
23-
24- - name : install poetry as a tool
25- run : uv tool install poetry
26-
27- - name : install dependencies
28- run : uvx poetry install --with dev
2921
3022 - name : Run mypy on allowlist
31- run : uvx poetry run mypy --non-interactive --config-file pyproject.toml @mypy_allowlist.txt
23+ run : uv run --all-groups mypy --non-interactive --config-file pyproject.toml @mypy_allowlist.txt
Original file line number Diff line number Diff line change 2424 uses : astral-sh/setup-uv@v5
2525 with :
2626 python-version : ${{ matrix.python-version }}
27- version : " 0.5.30"
28- - name : install poetry as a tool
29- run : uv tool install poetry
30-
31- - name : install dependencies
32- run : uvx poetry install --with dev
3327
3428 - name : Unit tests
35- run : uvx poetry run pytest tests/ --cov --cov-report=xml
29+ run : uv run pytest tests/ --cov --cov-report=xml
3630
3731 - name : Upload coverage reports to Codecov
3832 uses : codecov/codecov-action@v5
You can’t perform that action at this time.
0 commit comments