Skip to content

Commit ee29971

Browse files
authored
Merge pull request #20 from workflowai/guillaume/new-run-endpoint
Use new run endpoint
2 parents 3713ba4 + 6d344c0 commit ee29971

34 files changed

Lines changed: 455 additions & 1417 deletions

.github/workflows/e2e.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
workflow_dispatch:
1010

1111
env:
12-
WORKFLOWAI_TEST_API_URL: https://api.workflowai.dev
12+
WORKFLOWAI_TEST_API_URL: https://run.workflowai.dev
1313

1414
jobs:
1515
e2e-tests:

.vscode/settings.json

Lines changed: 40 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,43 @@
11
{
2-
"[python]": {
3-
"editor.codeActionsOnSave": {
4-
"source.fixAll": "explicit",
5-
"source.organizeImports": "explicit"
6-
},
7-
"editor.defaultFormatter": "charliermarsh.ruff",
8-
},
9-
"python.analysis.typeCheckingMode": "strict",
10-
"python.analysis.ignore": [
11-
"**/*_pb2.py",
12-
"**/*_pb2.pyi",
13-
"**/*_pb2_grpc.py",
14-
"*.proto"
15-
],
16-
"ruff.lint.args": [
17-
"--extend-ignore=E501",
18-
"--extend-exclude=/**/3rdparty_repositories/**/*.py",
19-
"--extend-exclude=/**/site-packages/**/*.py",
20-
],
21-
"python.testing.unittestEnabled": false,
22-
"python.testing.pytestEnabled": true,
23-
"python.testing.pytestArgs": [
24-
"-vv",
25-
],
26-
"python.languageServer": "Pylance",
27-
"python.analysis.autoImportCompletions": true,
28-
"editor.suggestSelection": "first",
29-
"editor.quickSuggestions": {
30-
"other": true,
31-
"comments": false,
32-
"strings": false
33-
},
34-
"editor.acceptSuggestionOnEnter": "on",
35-
"editor.tabCompletion": "on",
36-
"python.analysis.completeFunctionParens": true,
37-
"files.exclude": {
38-
"**/.git": true,
39-
"**/.svn": true,
40-
"**/.hg": true,
41-
"**/CVS": true,
42-
"**/.DS_Store": true,
43-
"**/Thumbs.db": true,
44-
"ai_model_cache": true,
45-
".mypy_cache": true,
46-
".venv": true,
47-
".ruff_cache": true,
2+
"[python]": {
3+
"editor.codeActionsOnSave": {
4+
"source.fixAll": "explicit",
5+
"source.organizeImports": "explicit"
486
},
7+
"editor.defaultFormatter": "charliermarsh.ruff"
8+
},
9+
"python.analysis.typeCheckingMode": "strict",
10+
"python.analysis.ignore": [
11+
"**/*_pb2.py",
12+
"**/*_pb2.pyi",
13+
"**/*_pb2_grpc.py",
14+
"*.proto"
15+
],
16+
17+
"python.testing.unittestEnabled": false,
18+
"python.testing.pytestEnabled": true,
19+
"python.testing.pytestArgs": ["-vv"],
20+
"python.languageServer": "Pylance",
21+
"python.analysis.autoImportCompletions": true,
22+
"editor.suggestSelection": "first",
23+
"editor.quickSuggestions": {
24+
"other": true,
25+
"comments": false,
26+
"strings": false
27+
},
28+
"editor.acceptSuggestionOnEnter": "on",
29+
"editor.tabCompletion": "on",
30+
"python.analysis.completeFunctionParens": true,
31+
"files.exclude": {
32+
"**/.git": true,
33+
"**/.svn": true,
34+
"**/.hg": true,
35+
"**/CVS": true,
36+
"**/.DS_Store": true,
37+
"**/Thumbs.db": true,
38+
"ai_model_cache": true,
39+
".mypy_cache": true,
40+
".venv": true,
41+
".ruff_cache": true
42+
}
4943
}

conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from freezegun import freeze_time
33

44

5-
@pytest.fixture()
5+
@pytest.fixture
66
def frozen_time():
77
with freeze_time("2024-01-01T00:00:00Z") as frozen_time:
88
yield frozen_time

examples/city_to_capital_task.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
from pydantic import BaseModel, Field
1+
from pydantic import BaseModel, Field # pyright: ignore [reportUnknownVariableType]
22

3-
from workflowai import Task, TaskVersionReference
3+
from workflowai import Task, VersionReference
44

55

66
class CityToCapitalTaskInput(BaseModel):
@@ -12,7 +12,8 @@ class CityToCapitalTaskInput(BaseModel):
1212

1313
class CityToCapitalTaskOutput(BaseModel):
1414
capital: str = Field(
15-
description="The capital of the specified city", examples=["Tokyo"],
15+
description="The capital of the specified city",
16+
examples=["Tokyo"],
1617
)
1718

1819

@@ -22,6 +23,4 @@ class CityToCapitalTask(Task[CityToCapitalTaskInput, CityToCapitalTaskOutput]):
2223
input_class: type[CityToCapitalTaskInput] = CityToCapitalTaskInput
2324
output_class: type[CityToCapitalTaskOutput] = CityToCapitalTaskOutput
2425

25-
version: TaskVersionReference = TaskVersionReference(
26-
iteration=4,
27-
)
26+
version: VersionReference = 4

examples/import_example.py

Lines changed: 0 additions & 33 deletions
This file was deleted.

examples/import_run.py

Lines changed: 0 additions & 34 deletions
This file was deleted.

0 commit comments

Comments
 (0)