Skip to content

Commit e2e9e9e

Browse files
committed
PR comments
1 parent f2e5d1d commit e2e9e9e

File tree

2 files changed

+28
-10
lines changed

2 files changed

+28
-10
lines changed

.github/workflows/ci.yaml

Lines changed: 28 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,12 @@ env:
77
JAVA_VERSION: "11"
88

99
jobs:
10-
main:
11-
name: CI
10+
main-go:
11+
name: CI [Go]
1212
strategy:
1313
matrix:
1414
os: [ubuntu-latest, macos-latest]
1515
go-version: ["1.18", "1.19", "1.20", "1.21", "1.22"]
16-
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
1716
runs-on: ${{ matrix.os }}
1817
steps:
1918
- name: Install SSH Key
@@ -32,28 +31,48 @@ jobs:
3231
uses: ./.github/actions/build
3332
with:
3433
go-version: ${{ env.GO_VERSION_BUILD }}
35-
- name: Generate Go SDK
34+
- name: Generate SDK
3635
uses: ./.github/actions/generate-sdk/go
3736
- name: Install Go ${{ matrix.go-version }}
3837
uses: actions/setup-go@v5
3938
with:
4039
go-version: ${{ matrix.go-version }}
41-
- name: Lint Go SDK
40+
- name: Lint
4241
if: ${{ matrix.go-version == '1.19' || matrix.go-version == '1.20' || matrix.go-version == '1.21' || matrix.go-version == '1.22'}}
4342
working-directory: ./sdk-repo-updated
4443
run: make lint skip-non-generated-files=true
45-
- name: Test Go SDK
44+
- name: Test
4645
working-directory: ./sdk-repo-updated
4746
run: make test skip-non-generated-files=true
48-
- name: Generate Python SDK
47+
main-python:
48+
name: CI [Python]
49+
strategy:
50+
matrix:
51+
os: [ubuntu-latest, macos-latest]
52+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
53+
runs-on: ${{ matrix.os }}
54+
steps:
55+
- name: Install SSH Key
56+
uses: shimataro/ssh-key-action@v2
57+
with:
58+
key: ${{ secrets.SSH_PRIVATE_KEY }}
59+
known_hosts: ${{ vars.SSH_KNOWN_HOSTS }}
60+
- name: Install Java
61+
uses: actions/setup-java@v4
62+
with:
63+
distribution: "temurin"
64+
java-version: ${{ env.JAVA_VERSION }}
65+
- name: Checkout
66+
uses: actions/checkout@v4
67+
- name: Generate SDK
4968
uses: ./.github/actions/generate-sdk/python
5069
- name: Install Python ${{ matrix.python-version }}
5170
uses: actions/setup-python@v5
5271
with:
5372
python-version: ${{ matrix.python-version }}
54-
- name: Lint Python SDK
73+
- name: Lint
5574
working-directory: ./sdk-repo-updated
5675
run: make lint
57-
- name: Test Python SDK
76+
- name: Test
5877
working-directory: ./sdk-repo-updated
5978
run: make test

scripts/generate-sdk/languages/python.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,6 @@ generate_python_sdk() {
107107
--git-repo-id ${GIT_REPO_ID} \
108108
--global-property apis,models,modelTests=false,modelDocs=false,apiDocs=false,apiTests=false,supportingFiles \
109109
--additional-properties=pythonPackageName="stackit-${service},removeEnumValuePrefix=false" >/dev/null
110-
##--enable-post-process-file \
111110

112111
# Remove unnecessary files
113112
rm "${SERVICES_FOLDER}/${service}/.openapi-generator-ignore"

0 commit comments

Comments
 (0)