nmk_github.action
Github actions handling module
Module Contents
Classes
Builder used to handle github workflow generation |
|
Resolution logic for githubDetectedPythonVersions |
- 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], command: 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
command – Build command for workflow
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