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
6 changes: 5 additions & 1 deletion .github/actions/build/python/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,8 @@ runs:
steps:
- name: Install project tools and dependencies
shell: bash
run: make project-tools LANGUAGE=python
run: |
python -m venv .venv
. .venv/bin/activate
python -m pip install --upgrade pip
make project-tools LANGUAGE=python
22 changes: 13 additions & 9 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,19 +71,23 @@ jobs:
- name: Install Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install core
python-version: ${{ matrix.python-version }}
- name: Install sdk
working-directory: ./sdk-repo-updated
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;
- name: Install sdk
working-directory: ./sdk-repo-updated
run: make install-dev
python -m venv .venv
. .venv/bin/activate
python -m pip install --upgrade pip
make install-dev
- name: Lint
working-directory: ./sdk-repo-updated
run: make lint
run: |
. .venv/bin/activate
make lint
- name: Test
working-directory: ./sdk-repo-updated
run: make test
run: |
. .venv/bin/activate
make test
6 changes: 6 additions & 0 deletions .github/workflows/sdk-pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,10 @@ jobs:
GH_REPO: "stackitcloud/stackit-sdk-python"
GH_TOKEN: ${{ secrets.SDK_PR_TOKEN }}
run: |
set -e
python -m venv .venv
. .venv/bin/activate
python -m pip install --upgrade pip
pip install poetry
poetry config virtualenvs.create false
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 }})" "git@github.com:stackitcloud/stackit-sdk-python.git" "python"
Loading