Skip to content

Commit 5a1fe00

Browse files
SDK regeneration (#14)
1 parent 58ef4e4 commit 5a1fe00

File tree

17 files changed

+332
-7
lines changed

17 files changed

+332
-7
lines changed

.github/workflows/ci.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,26 @@ jobs:
1818
run: poetry install
1919
- name: Compile
2020
run: poetry run mypy .
21+
test:
22+
runs-on: ubuntu-20.04
23+
steps:
24+
- name: Checkout repo
25+
uses: actions/checkout@v3
26+
- name: Set up python
27+
uses: actions/setup-python@v4
28+
with:
29+
python-version: 3.8
30+
- name: Bootstrap poetry
31+
run: |
32+
curl -sSL https://install.python-poetry.org | python - -y --version 1.5.1
33+
- name: Install dependencies
34+
run: poetry install
35+
36+
- name: Test
37+
run: poetry run pytest ./tests/custom/
2138

2239
publish:
23-
needs: [compile]
40+
needs: [compile, test]
2441
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
2542
runs-on: ubuntu-20.04
2643
steps:

poetry.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "humanloop"
3-
version = "0.8.0b11"
3+
version = "0.8.0b12"
44
description = ""
55
readme = "README.md"
66
authors = []

src/humanloop/core/client_wrapper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def get_headers(self) -> typing.Dict[str, str]:
1616
headers: typing.Dict[str, str] = {
1717
"X-Fern-Language": "Python",
1818
"X-Fern-SDK-Name": "humanloop",
19-
"X-Fern-SDK-Version": "0.8.0b11",
19+
"X-Fern-SDK-Version": "0.8.0b12",
2020
}
2121
headers["X-API-KEY"] = self.api_key
2222
return headers

tests/custom/test_client.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import pytest
2+
3+
4+
# Get started with writing tests with pytest at https://docs.pytest.org
5+
@pytest.mark.skip(reason="Unimplemented")
6+
def test_client() -> None:
7+
assert True == True

tests/utils/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# This file was auto-generated by Fern from our API Definition.
2+
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# This file was auto-generated by Fern from our API Definition.
2+
3+
# This file was auto-generated by Fern from our API Definition.
4+
5+
from .circle import CircleParams
6+
from .object_with_defaults import ObjectWithDefaultsParams
7+
from .object_with_optional_field import ObjectWithOptionalFieldParams
8+
from .shape import ShapeParams, Shape_CircleParams, Shape_SquareParams
9+
from .square import SquareParams
10+
from .undiscriminated_shape import UndiscriminatedShapeParams
11+
12+
__all__ = [
13+
"CircleParams",
14+
"ObjectWithDefaultsParams",
15+
"ObjectWithOptionalFieldParams",
16+
"ShapeParams",
17+
"Shape_CircleParams",
18+
"Shape_SquareParams",
19+
"SquareParams",
20+
"UndiscriminatedShapeParams",
21+
]
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# This file was auto-generated by Fern from our API Definition.
2+
3+
# This file was auto-generated by Fern from our API Definition.
4+
5+
import typing_extensions
6+
import typing_extensions
7+
from humanloop.core.serialization import FieldMetadata
8+
9+
10+
class CircleParams(typing_extensions.TypedDict):
11+
radius_measurement: typing_extensions.Annotated[float, FieldMetadata(alias="radiusMeasurement")]

tests/utils/assets/models/color.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# This file was auto-generated by Fern from our API Definition.
2+
3+
# This file was auto-generated by Fern from our API Definition.
4+
5+
import typing
6+
7+
Color = typing.Union[typing.Literal["red", "blue"], typing.Any]
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# This file was auto-generated by Fern from our API Definition.
2+
3+
# This file was auto-generated by Fern from our API Definition.
4+
5+
import typing_extensions
6+
import typing_extensions
7+
8+
9+
class ObjectWithDefaultsParams(typing_extensions.TypedDict):
10+
"""
11+
Defines properties with default values and validation rules.
12+
"""
13+
14+
decimal: typing_extensions.NotRequired[float]
15+
string: typing_extensions.NotRequired[str]
16+
required_string: str

0 commit comments

Comments
 (0)