Run.config¶
Read your repository's settings for the workflow, like its build command. The workflow declares the names it reads, and each repository sets the values.
The workflow's pyproject.toml:
The repository's project file,
~/.agl/projects/<project>.toml:
~/.agl/projects/<project>.toml doesn't exist, run agl run command to generate it.
In the workflow:
AGL checks that every declared setting is set before the run starts. Reading a name the workflow
didn't declare raises an error. Run.integrate() always needs build.
Each value is a TOML string, which Run.config gives as written. A workflow can't declare AGL's
own keys: name, repo, trees_root and build_timeout.
<project> is the name AGL gave the repository on its
first run.
Reference¶
agl.sdk.Run.config
property
¶
The project settings this workflow declares.
Returns:
-
Mapping[str, str]–The declared settings by key, exactly as the project file wrote them.
Raises:
-
InputError–Reading a key the workflow's
configline doesn't declare, throughgetandinas well as[].