We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c0f8475 commit 5fe1bc0Copy full SHA for 5fe1bc0
test_config_templates.py
@@ -38,6 +38,13 @@ def project() -> Project:
38
)
39
def test_configs(_config_file, project: Project):
40
_config_dict = yaml.safe_load(open(_config_file).read())
41
+ if _config_dict.get("version") == 2:
42
+ resp = requests.post(
43
+ f"{_cloud_url}/v2/workflows/validate",
44
+ json=_config_dict,
45
+ headers={"Authorization": _api_key},
46
+ )
47
+ else:
48
resp = requests.post(
49
f"{_cloud_url}/projects/{project.name}/models",
50
json=_config_dict,
0 commit comments