Skip to content

Commit 284f766

Browse files
committed
use uv in all unit tests
1 parent 8d967df commit 284f766

7 files changed

+10
-62
lines changed

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

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +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
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
3629

3730
- name: Remove .git
3831
run: |

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

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +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
3630

3731
- name: Run Codeflash to optimize code
3832
id: optimize_code

.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

0 commit comments

Comments
 (0)