forked from kubeflow/pipelines
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support Python functions in workflows (kubeflow#431)
* Support Python functions in workflows * Use imp library and include args * Import ci directory * Import kf_unittests * Add kwargs * Fix pylint issues * Remove unused import * Add more logging * Include Kam fix
- Loading branch information
1 parent
54db950
commit 45511ce
Showing
4 changed files
with
160 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
"""Test Argo workflow""" | ||
|
||
import requests | ||
import yaml | ||
|
||
def create_workflow(): | ||
""" Loads Argo example YAML and returns dictionary object """ | ||
# TODO: define workflow to run unittests | ||
argo_hello_world = requests.get("https://raw.githubusercontent.com/argoproj/" | ||
"argo/master/examples/hello-world.yaml") | ||
yaml_result = yaml.safe_load(argo_hello_world.text) | ||
return yaml_result | ||
|
||
if __name__ == "__main__": | ||
create_workflow() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters