Skip to content

Commit 2497c4a

Browse files
committed
all in on uv
1 parent 8d967df commit 2497c4a

10 files changed

+13
-104
lines changed

.github/workflows/codeflash-optimize.yaml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,7 @@ jobs:
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

.github/workflows/end-to-end-test-bubblesort-pytest-no-git.yaml

Lines changed: 4 additions & 27 deletions
Original file line numberDiff line numberDiff 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

.github/workflows/end-to-end-test-bubblesort-unittest.yaml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff 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: |

.github/workflows/end-to-end-test-coverage.yaml

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,7 @@ jobs:
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

.github/workflows/end-to-end-test-futurehouse.yaml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,8 @@ jobs:
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

.github/workflows/end-to-end-test-init-optim.yaml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,8 @@ jobs:
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

.github/workflows/end-to-end-test-tracer-replay.yaml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,7 @@ jobs:
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

.github/workflows/end-to-end-topological-sort-test.yaml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,7 @@ jobs:
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

.github/workflows/mypy.yml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,6 @@ jobs:
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

.github/workflows/unit-tests.yaml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,9 @@ jobs:
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

0 commit comments

Comments
 (0)