Skip to content

Commit 8901f71

Browse files
author
Harold James Quilang
committed
feat: setup new sdk version & github workflow
1 parent 5f55b40 commit 8901f71

File tree

447 files changed

+58671
-2624
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

447 files changed

+58671
-2624
lines changed

.DS_Store

-6 KB
Binary file not shown.

.coveragerc

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

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# This allows generated code to be indexed correctly
2+
*.py linguist-generated=false

.github/workflows/sdk_generation.yaml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: Generate
2+
permissions:
3+
checks: write
4+
contents: write
5+
pull-requests: write
6+
statuses: write
7+
id-token: write
8+
"on":
9+
workflow_dispatch:
10+
inputs:
11+
force:
12+
description: Force generation of SDKs
13+
type: boolean
14+
default: false
15+
set_version:
16+
description: optionally set a specific SDK version
17+
type: string
18+
push:
19+
branches:
20+
- main
21+
paths:
22+
- .speakeasy/gen.yaml
23+
jobs:
24+
get_target:
25+
runs-on: ubuntu-latest
26+
outputs:
27+
target: ${{ steps.target.outputs.target }}
28+
name: Get target
29+
steps:
30+
- uses: actions/checkout@v4
31+
with:
32+
fetch-depth: 0
33+
34+
- name: Get target
35+
id: target
36+
run: |
37+
SDK_TARGET_VERSION=$(yq '.typescript.version' .speakeasy/gen.yaml)
38+
if [[ $SDK_TARGET_VERSION == *rc* ]]; then
39+
echo "target=orq-prerelease-python" >> "$GITHUB_OUTPUT"
40+
else
41+
echo "target=orq-python" >> "$GITHUB_OUTPUT"
42+
fi
43+
generate:
44+
needs: get_target
45+
uses: speakeasy-api/sdk-generation-action/.github/workflows/workflow-executor.yaml@v15
46+
with:
47+
force: ${{ github.event.inputs.force }}
48+
mode: direct
49+
set_version: ${{ github.event.inputs.set_version }}
50+
target: ${{ needs.get_target.outputs.target }}
51+
secrets:
52+
github_access_token: ${{ secrets.GITHUB_TOKEN }}
53+
pypi_token: ${{ secrets.PYPI_TOKEN }}
54+
speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }}

.github/workflows/test.yml

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

.gitignore

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,9 @@
1-
.pypirc
2-
private.txt
3-
.idea
4-
venv
5-
.venv
6-
dist
7-
build
8-
dist/
1+
.venv/
92
venv/
3+
src/*.egg-info/
104
__pycache__/
11-
.coverage
12-
.idea/
13-
.tox/
14-
*.egg-info/
15-
*.py[cod]
16-
*$py.class
5+
.pytest_cache/
176
.python-version
18-
poetry.lock
7+
.DS_Store
8+
pyrightconfig.json
9+
README-PYPI.md

0 commit comments

Comments
 (0)