nmk_github.action
Github actions handling module
Classes
Builder used to handle github workflow generation |
|
Resolution logic for githubDetectedPythonVersions |
Module Contents
- class nmk_github.action.ActionFileBuilder(model: nmk.model.model.NmkModel)
Bases:
nmk_base.common.TemplateBuilderBuilder used to handle github workflow generation
- build(python_versions: list[str], images: list[str], build_steps: list[dict[str, str]], publish_steps: list[dict[str, str]])
Called by the gh.actions to generate the Github workflow file.
- Parameters:
python_versions – List of used python versions
images – List of used Github images
build_steps – List of extra build steps to be generated
publish_steps – List of extra publish steps to be generated
- class nmk_github.action.PythonVersionsResolver(model: nmk.model.model.NmkModel)
Bases:
nmk.model.resolver.NmkListConfigResolverResolution logic for githubDetectedPythonVersions
- get_value(name: str) list[str]
Resolves python version to be used in generated workflow file.
Returns:
githubPythonVersions item value if not empty
otherwise pythonSupportedVersions item value if nmk-python plugin is used
otherwise an empty list
- Parameters:
name – item name
- Returns:
resolved python versions list