Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,13 @@ jobs:
python-version: ${{ matrix.python-version }}
- name: Install core
run: |
pip install poetry
poetry config virtualenvs.create false
git clone https://github.com/stackitcloud/stackit-sdk-python-core.git core
cd core;make install-dev;
cd core;make install;
- name: Install sdk
working-directory: ./sdk-repo-updated
run: make install-dev
- name: Lint
working-directory: ./sdk-repo-updated
run: make lint
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/sdk-pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ env:

jobs:
main-go:
name: [Go] Update SDK Repo
name: "[Go] Update SDK Repo"
runs-on: ubuntu-latest
steps:
- name: Install SSH Key
Expand Down Expand Up @@ -40,7 +40,7 @@ jobs:
run: |
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 }})"
main-python:
name: [Python] Update SDK Repo
name: "[Python] Update SDK Repo"
runs-on: ubuntu-latest
steps:
- name: Install SSH Key
Expand Down
18 changes: 18 additions & 0 deletions scripts/generate-sdk/languages/python.sh
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,24 @@ generate_python_sdk() {
cp -r ${sdk_services_backup_dir}/${service}/src/wait ${SERVICES_FOLDER}/${service}/src/wait
fi

# If the service has a README.md file, move them inside the service folder
if [ -f ${sdk_services_backup_dir}/${service}/README.md ]; then
echo "Found ${service} \"README.md\" file"
cp -r ${sdk_services_backup_dir}/${service}/README.md ${SERVICES_FOLDER}/${service}/README.md
fi

# If the service has a pyproject.toml file, move them inside the service folder
if [ -f ${sdk_services_backup_dir}/${service}/pyproject.toml ]; then
echo "Found ${service} \"pyproject.toml\" file"
cp -r ${sdk_services_backup_dir}/${service}/pyproject.toml ${SERVICES_FOLDER}/${service}/pyproject.toml
fi

# If the service has a poetry.lock file, move them inside the service folder
if [ -f ${sdk_services_backup_dir}/${service}/poetry.lock ]; then
echo "Found ${service} \"poetry.lock\" file"
cp -r ${sdk_services_backup_dir}/${service}/poetry.lock ${SERVICES_FOLDER}/${service}/poetry.lock
fi

# If the service has a CHANGELOG file, move it inside the service folder
if [ -f ${sdk_services_backup_dir}/${service}/CHANGELOG.md ]; then
echo "Found ${service} \"CHANGELOG\" file"
Expand Down
Loading