Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions .github/workflows/codeflash-optimize.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,9 @@ jobs:

- name: 📦 Install dependencies (CLI)
run: |
uv tool install poetry
uv venv
source .venv/bin/activate
poetry install --with dev
uv sync
- name: ⚡️Codeflash Optimization
id: optimize_code
run: |
source .venv/bin/activate
poetry run codeflash --benchmark
uv run codeflash --benchmark
12 changes: 3 additions & 9 deletions .github/workflows/end-to-end-test-benchmark-bubblesort.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
name: end-to-end-test

on:
# Use pull_request_target for everything to ensure access to secrets
pull_request_target:
pull_request:
paths:
- '**' # Trigger for all paths

Expand Down Expand Up @@ -62,13 +61,8 @@ jobs:

- name: Install dependencies (CLI)
run: |
uv tool install poetry
uv venv
source .venv/bin/activate
poetry install --with dev
uv sync
- name: Run Codeflash to optimize code
id: optimize_code_with_benchmarks
run: |
source .venv/bin/activate
poetry run python tests/scripts/end_to_end_test_benchmark_sort.py
uv run python tests/scripts/end_to_end_test_benchmark_sort.py
13 changes: 4 additions & 9 deletions .github/workflows/end-to-end-test-bubblesort-pytest-no-git.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
name: end-to-end-test

on:
# Use pull_request_target for everything to ensure access to secrets
pull_request_target:
pull_request:
paths:
- '**' # Trigger for all paths

Expand Down Expand Up @@ -61,11 +60,8 @@ jobs:

- name: Install dependencies (CLI)
run: |
uv tool install poetry
uv venv
source .venv/bin/activate
poetry install --with dev
uv sync
- name: Remove .git
run: |
if [ -d ".git" ]; then
Expand All @@ -85,5 +81,4 @@ jobs:
- name: Run Codeflash to optimize code
id: optimize_code
run: |
source .venv/bin/activate
poetry run python tests/scripts/end_to_end_test_bubblesort_pytest.py
uv run python tests/scripts/end_to_end_test_bubblesort_pytest.py
11 changes: 3 additions & 8 deletions .github/workflows/end-to-end-test-bubblesort-unittest.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
name: end-to-end-test

on:
# Use pull_request_target for everything to ensure access to secrets
pull_request_target:
pull_request:
paths:
- '**' # Trigger for all paths

Expand Down Expand Up @@ -61,13 +60,9 @@ jobs:

- name: Install dependencies (CLI)
run: |
uv tool install poetry
uv venv
source .venv/bin/activate
poetry install --with dev
uv sync
- name: Run Codeflash to optimize code
id: optimize_code
run: |
source .venv/bin/activate
poetry run python tests/scripts/end_to_end_test_bubblesort_unittest.py
uv run python tests/scripts/end_to_end_test_bubblesort_unittest.py
13 changes: 4 additions & 9 deletions .github/workflows/end-to-end-test-coverage.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
name: Coverage E2E

on:
# Use pull_request_target for everything to ensure access to secrets
pull_request_target:
pull_request:
paths:
- '**' # Trigger for all paths

Expand Down Expand Up @@ -59,14 +58,10 @@ jobs:

- name: Install dependencies (CLI)
run: |
uv tool install poetry
uv venv
source .venv/bin/activate
poetry install --with dev
poetry add black # my-best-repo in end_to_end_test_coverage.py is configured to use black
uv sync
uv add black # my-best-repo in end_to_end_test_coverage.py is configured to use black
- name: Run Codeflash to optimize code
id: optimize_code
run: |
source .venv/bin/activate
poetry run python tests/scripts/end_to_end_test_coverage.py
uv run python tests/scripts/end_to_end_test_coverage.py
11 changes: 3 additions & 8 deletions .github/workflows/end-to-end-test-futurehouse.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
name: end-to-end-test

on:
# Use pull_request_target for everything to ensure access to secrets
pull_request_target:
pull_request:
paths:
- '**' # Trigger for all paths

Expand Down Expand Up @@ -61,13 +60,9 @@ jobs:

- name: Install dependencies (CLI)
run: |
uv tool install poetry
uv venv
source .venv/bin/activate
poetry install --with dev
uv sync
- name: Run Codeflash to optimize code
id: optimize_code
run: |
source .venv/bin/activate
poetry run python tests/scripts/end_to_end_test_futurehouse.py
uv run python tests/scripts/end_to_end_test_futurehouse.py
11 changes: 3 additions & 8 deletions .github/workflows/end-to-end-test-init-optim.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
name: end-to-end-test

on:
# Use pull_request_target for everything to ensure access to secrets
pull_request_target:
pull_request:
paths:
- '**' # Trigger for all paths
workflow_dispatch:
Expand Down Expand Up @@ -60,13 +59,9 @@ jobs:

- name: Install dependencies (CLI)
run: |
uv tool install poetry
uv venv
source .venv/bin/activate
poetry install --with dev
uv sync
- name: Run Codeflash to optimize code
id: optimize_code
run: |
source .venv/bin/activate
poetry run python tests/scripts/end_to_end_test_init_optimization.py
uv run python tests/scripts/end_to_end_test_init_optimization.py
11 changes: 3 additions & 8 deletions .github/workflows/end-to-end-test-tracer-replay.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
name: end-to-end-test

on:
# Use pull_request_target for everything to ensure access to secrets
pull_request_target:
pull_request:
paths:
- '**' # Trigger for all paths
workflow_dispatch:
Expand Down Expand Up @@ -61,13 +60,9 @@ jobs:

- name: Install dependencies (CLI)
run: |
uv tool install poetry
uv venv
source .venv/bin/activate
poetry install --with dev
uv sync
- name: Run Codeflash to optimize code
id: optimize_code
run: |
source .venv/bin/activate
poetry run python tests/scripts/end_to_end_test_tracer_replay.py
uv run python tests/scripts/end_to_end_test_tracer_replay.py
11 changes: 3 additions & 8 deletions .github/workflows/end-to-end-topological-sort-test.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
name: end-to-end-test

on:
# Use pull_request_target for everything to ensure access to secrets
pull_request_target:
pull_request:
paths:
- '**' # Trigger for all paths

Expand Down Expand Up @@ -86,13 +85,9 @@ jobs:

- name: Install dependencies (CLI)
run: |
uv tool install poetry
uv venv
source .venv/bin/activate
poetry install --with dev
uv sync
- name: Run Codeflash to optimize code
id: optimize_code
run: |
source .venv/bin/activate
poetry run python tests/scripts/end_to_end_test_topological_sort.py
uv run python tests/scripts/end_to_end_test_topological_sort.py
9 changes: 4 additions & 5 deletions .github/workflows/mypy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,10 @@ jobs:
with:
version: "0.5.30"

- name: install poetry as a tool
run: uv tool install poetry
- name: sync uv
run: |
uv sync
- name: install dependencies
run: uvx poetry install --with dev
- name: Run mypy on allowlist
run: uvx poetry run mypy --non-interactive --config-file pyproject.toml @mypy_allowlist.txt
run: uv run mypy --non-interactive --config-file pyproject.toml @mypy_allowlist.txt
6 changes: 2 additions & 4 deletions .github/workflows/unit-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,9 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
version: "0.5.30"
- name: install poetry as a tool
run: uv tool install poetry

- name: install dependencies
run: uvx poetry install --with dev
run: uv sync

- name: Unit tests
run: uvx poetry run pytest tests/ --benchmark-skip -m "not ci_skip"
run: uv run pytest tests/ --benchmark-skip -m "not ci_skip"
2 changes: 1 addition & 1 deletion codeflash/version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# These version placeholders will be replaced by poetry-dynamic-versioning during `poetry build`.
# These version placeholders will be replaced by uv-dynamic-versioning during build.
__version__ = "0.14.4"
__version_tuple__ = (0, 14, 4)
Loading
Loading