Skip to content

Commit a14ad5e

Browse files
SDK regeneration (#4)
Co-authored-by: fern-api <115122769+fern-api[bot]@users.noreply.github.com>
1 parent d970e71 commit a14ad5e

File tree

4 files changed

+27
-4
lines changed

4 files changed

+27
-4
lines changed

.github/workflows/ci.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,27 @@ jobs:
3434
run: poetry install
3535
- name: Test
3636
run: poetry run pytest .
37+
38+
publish:
39+
needs: [compile, test]
40+
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
41+
runs-on: ubuntu-20.04
42+
steps:
43+
- name: Checkout repo
44+
uses: actions/checkout@v3
45+
- name: Set up python
46+
uses: actions/setup-python@v4
47+
with:
48+
python-version: 3.7
49+
- name: Bootstrap poetry
50+
run: |
51+
curl -sSL https://install.python-poetry.org | python - -y --version 1.5.1
52+
- name: Install dependencies
53+
run: poetry install
54+
- name: Publish to pypi
55+
run: |
56+
poetry config repositories.remote https://upload.pypi.org/legacy/
57+
poetry --no-interaction -v publish --build --repository remote --username "$PYPI_USERNAME" --password "$PYPI_PASSWORD"
58+
env:
59+
PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }}
60+
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}

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 = "webflow"
3-
version = "0.0.0"
3+
version = "0.1.0b1"
44
description = ""
55
readme = "README.md"
66
authors = []

src/webflow/core/client_wrapper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def get_headers(self) -> typing.Dict[str, str]:
1414
headers: typing.Dict[str, str] = {
1515
"X-Fern-Language": "Python",
1616
"X-Fern-SDK-Name": "webflow",
17-
"X-Fern-SDK-Version": "0.0.0",
17+
"X-Fern-SDK-Version": "0.1.0b1",
1818
}
1919
headers["Authorization"] = f"Bearer {self._get_access_token()}"
2020
return headers

tests/test_client.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import pytest
2-
import pytest
32

43
# Get started with writing tests with pytest at https://docs.pytest.org
54
@pytest.mark.skip(reason="Unimplemented")
65
def test_client() -> None:
7-
assert True == True
6+
assert True == True

0 commit comments

Comments
 (0)