Skip to content

Commit eb2b8b7

Browse files
authored
fix: sdk pipeline (#104)
1 parent 4179727 commit eb2b8b7

File tree

3 files changed

+26
-3
lines changed

3 files changed

+26
-3
lines changed

.github/workflows/ci.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,13 @@ jobs:
7676
python-version: ${{ matrix.python-version }}
7777
- name: Install core
7878
run: |
79+
pip install poetry
80+
poetry config virtualenvs.create false
7981
git clone https://github.com/stackitcloud/stackit-sdk-python-core.git core
80-
cd core;make install-dev;
82+
cd core;make install;
83+
- name: Install sdk
84+
working-directory: ./sdk-repo-updated
85+
run: make install-dev
8186
- name: Lint
8287
working-directory: ./sdk-repo-updated
8388
run: make lint

.github/workflows/sdk-pr.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ env:
1212

1313
jobs:
1414
main-go:
15-
name: [Go] Update SDK Repo
15+
name: "[Go] Update SDK Repo"
1616
runs-on: ubuntu-latest
1717
steps:
1818
- name: Install SSH Key
@@ -40,7 +40,7 @@ jobs:
4040
run: |
4141
scripts/sdk-create-pr.sh "generator-bot-${{ github.run_id }}" "Generated from GitHub run [${{ github.run_id }}](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})"
4242
main-python:
43-
name: [Python] Update SDK Repo
43+
name: "[Python] Update SDK Repo"
4444
runs-on: ubuntu-latest
4545
steps:
4646
- name: Install SSH Key

scripts/generate-sdk/languages/python.sh

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,24 @@ generate_python_sdk() {
124124
cp -r ${sdk_services_backup_dir}/${service}/src/wait ${SERVICES_FOLDER}/${service}/src/wait
125125
fi
126126

127+
# If the service has a README.md file, move them inside the service folder
128+
if [ -f ${sdk_services_backup_dir}/${service}/README.md ]; then
129+
echo "Found ${service} \"README.md\" file"
130+
cp -r ${sdk_services_backup_dir}/${service}/README.md ${SERVICES_FOLDER}/${service}/README.md
131+
fi
132+
133+
# If the service has a pyproject.toml file, move them inside the service folder
134+
if [ -f ${sdk_services_backup_dir}/${service}/pyproject.toml ]; then
135+
echo "Found ${service} \"pyproject.toml\" file"
136+
cp -r ${sdk_services_backup_dir}/${service}/pyproject.toml ${SERVICES_FOLDER}/${service}/pyproject.toml
137+
fi
138+
139+
# If the service has a poetry.lock file, move them inside the service folder
140+
if [ -f ${sdk_services_backup_dir}/${service}/poetry.lock ]; then
141+
echo "Found ${service} \"poetry.lock\" file"
142+
cp -r ${sdk_services_backup_dir}/${service}/poetry.lock ${SERVICES_FOLDER}/${service}/poetry.lock
143+
fi
144+
127145
# If the service has a CHANGELOG file, move it inside the service folder
128146
if [ -f ${sdk_services_backup_dir}/${service}/CHANGELOG.md ]; then
129147
echo "Found ${service} \"CHANGELOG\" file"

0 commit comments

Comments
 (0)