Skip to content

Commit 37a8170

Browse files
committed
ensure write to file for each step
1 parent e3e8f4b commit 37a8170

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ jobs:
9090
GITHUB_TOKEN: ${{ github.token }}
9191
run: >-
9292
gh release create
93-
'v0.2.1'
93+
'v0.2.2'
9494
--repo '${{ github.repository }}'
9595
--notes ""
9696
@@ -102,5 +102,5 @@ jobs:
102102
# sigstore-produced signatures and certificates.
103103
run: >-
104104
gh release upload
105-
'v0.2.1' dist/**
105+
'v0.2.2' dist/**
106106
--repo '${{ github.repository }}'

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ authors = [
1010
]
1111
description = "Documentation for `weco`, a CLI for using Weco AI's code optimizer."
1212
readme = "README.md"
13-
version = "0.2.1"
13+
version = "0.2.2"
1414
license = {text = "MIT"}
1515
requires-python = ">=3.12"
1616
dependencies = ["requests", "rich"]

weco/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# DO NOT EDIT
2-
__pkg_version__ = "0.2.1"
2+
__pkg_version__ = "0.2.2"
33
__api_version__ = "v1"
44
__base_url__ = f"https://api.aide.weco.ai/{__api_version__}"

weco/cli.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,9 @@ def main() -> None:
185185
# Save next solution (.runs/<session-id>/step_<step>.py)
186186
write_to_path(fp=runs_dir / f"step_{step}.py", content=eval_and_next_solution_response["code"])
187187

188+
# Write the next solution to the source file
189+
write_to_path(fp=source_fp, content=eval_and_next_solution_response["code"])
190+
188191
# Get the optimization session status for
189192
# the best solution, its score, and the history to plot the tree
190193
status_response = get_optimization_session_status(console=console, session_id=session_id, include_history=True)

0 commit comments

Comments
 (0)