Skip to content

Commit 4d533f3

Browse files
committed
update the tests to uv
1 parent d37d27d commit 4d533f3

10 files changed

+23
-59
lines changed

.github/workflows/codeflash-optimize.yaml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,9 @@ jobs:
3535

3636
- name: 📦 Install dependencies (CLI)
3737
run: |
38-
uv tool install poetry
39-
uv venv
40-
source .venv/bin/activate
41-
poetry install --with dev
38+
uv sync
4239
4340
- name: ⚡️Codeflash Optimization
4441
id: optimize_code
4542
run: |
46-
source .venv/bin/activate
47-
poetry run codeflash --benchmark
43+
uv run --benchmark

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

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,8 @@ jobs:
6262

6363
- name: Install dependencies (CLI)
6464
run: |
65-
uv tool install poetry
66-
uv venv
67-
source .venv/bin/activate
68-
poetry install --with dev
69-
65+
uv sync
7066
- name: Run Codeflash to optimize code
7167
id: optimize_code_with_benchmarks
7268
run: |
73-
source .venv/bin/activate
74-
poetry run python tests/scripts/end_to_end_test_benchmark_sort.py
69+
uv run python tests/scripts/end_to_end_test_benchmark_sort.py

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

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,8 @@ jobs:
6161

6262
- name: Install dependencies (CLI)
6363
run: |
64-
uv tool install poetry
65-
uv venv
66-
source .venv/bin/activate
67-
poetry install --with dev
68-
64+
uv sync
65+
6966
- name: Remove .git
7067
run: |
7168
if [ -d ".git" ]; then
@@ -85,5 +82,4 @@ jobs:
8582
- name: Run Codeflash to optimize code
8683
id: optimize_code
8784
run: |
88-
source .venv/bin/activate
89-
poetry run python tests/scripts/end_to_end_test_bubblesort_pytest.py
85+
uv run python tests/scripts/end_to_end_test_bubblesort_pytest.py

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

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,9 @@ jobs:
6161

6262
- name: Install dependencies (CLI)
6363
run: |
64-
uv tool install poetry
65-
uv venv
66-
source .venv/bin/activate
67-
poetry install --with dev
64+
uv sync
6865
6966
- name: Run Codeflash to optimize code
7067
id: optimize_code
7168
run: |
72-
source .venv/bin/activate
73-
poetry run python tests/scripts/end_to_end_test_bubblesort_unittest.py
69+
uv run python tests/scripts/end_to_end_test_bubblesort_unittest.py

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

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,9 @@ jobs:
6161

6262
- name: Install dependencies (CLI)
6363
run: |
64-
uv tool install poetry
65-
uv venv
66-
source .venv/bin/activate
67-
poetry install --with dev
64+
uv sync
6865
6966
- name: Run Codeflash to optimize code
7067
id: optimize_code
7168
run: |
72-
source .venv/bin/activate
73-
poetry run python tests/scripts/end_to_end_test_futurehouse.py
69+
uv run python tests/scripts/end_to_end_test_futurehouse.py

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

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,9 @@ jobs:
6060

6161
- name: Install dependencies (CLI)
6262
run: |
63-
uv tool install poetry
64-
uv venv
65-
source .venv/bin/activate
66-
poetry install --with dev
63+
uv sync
6764
6865
- name: Run Codeflash to optimize code
6966
id: optimize_code
7067
run: |
71-
source .venv/bin/activate
72-
poetry run python tests/scripts/end_to_end_test_init_optimization.py
68+
uv run python tests/scripts/end_to_end_test_init_optimization.py

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

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,9 @@ jobs:
6161

6262
- name: Install dependencies (CLI)
6363
run: |
64-
uv tool install poetry
65-
uv venv
66-
source .venv/bin/activate
67-
poetry install --with dev
64+
uv sync
6865
6966
- name: Run Codeflash to optimize code
7067
id: optimize_code
7168
run: |
72-
source .venv/bin/activate
73-
poetry run python tests/scripts/end_to_end_test_tracer_replay.py
69+
uv run python tests/scripts/end_to_end_test_tracer_replay.py

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

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -86,13 +86,9 @@ jobs:
8686

8787
- name: Install dependencies (CLI)
8888
run: |
89-
uv tool install poetry
90-
uv venv
91-
source .venv/bin/activate
92-
poetry install --with dev
89+
uv sync
9390
9491
- name: Run Codeflash to optimize code
9592
id: optimize_code
9693
run: |
97-
source .venv/bin/activate
98-
poetry run python tests/scripts/end_to_end_test_topological_sort.py
94+
uv run python tests/scripts/end_to_end_test_topological_sort.py

.github/workflows/mypy.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,10 @@ jobs:
2121
with:
2222
version: "0.5.30"
2323

24-
- name: install poetry as a tool
25-
run: uv tool install poetry
24+
- name: sync uv
25+
run: |
26+
uv sync
2627
27-
- name: install dependencies
28-
run: uvx poetry install --with dev
2928
3029
- name: Run mypy on allowlist
31-
run: uvx poetry run mypy --non-interactive --config-file pyproject.toml @mypy_allowlist.txt
30+
run: uv run mypy --non-interactive --config-file pyproject.toml @mypy_allowlist.txt

.github/workflows/unit-tests.yaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,9 @@ jobs:
2525
with:
2626
python-version: ${{ matrix.python-version }}
2727
version: "0.5.30"
28-
- name: install poetry as a tool
29-
run: uv tool install poetry
3028

3129
- name: install dependencies
32-
run: uvx poetry install --with dev
30+
run: uv sync
3331

3432
- name: Unit tests
35-
run: uvx poetry run pytest tests/ --benchmark-skip -m "not ci_skip"
33+
run: uv run pytest tests/ --benchmark-skip -m "not ci_skip"

0 commit comments

Comments
 (0)