fix: store path for both conf objs
All checks were successful
build / build (push) Successful in 2m21s

This commit is contained in:
张泊明518370910136 2025-02-27 01:17:14 -05:00
parent 4c12bf9a34
commit 723705b94f
GPG Key ID: D47306D7062CDA9D
2 changed files with 4 additions and 1 deletions

View File

@ -75,6 +75,8 @@ def convert(
repo_conf.root = root
repo_conf.path = repo_toml_path.relative_to(root)
task_conf = task.Config(**task_obj)
task_conf.root = root
task_conf.path = task_toml_path.relative_to(root)
result_model = convert_conf(repo_conf, task_conf)
result_dict = result_model.model_dump(by_alias=True, exclude_none=True)
with result_json_path.open("w") as result_file:

View File

@ -33,7 +33,8 @@ class Release(BaseModel):
class Config(BaseModel):
path: Path = Path(".")
root: Path = Path(".")
path: Path = Path("conf.toml")
task: str # Task name (e.g., hw3 ex5)
release: Release # Release configuration
stages: List[Stage] # list of stage configurations