Skip to content

Commit fa715e6

Browse files
authored
fix: python pipeline (#120)
* fix * fixit * wip * wip * try something * Revert "try something" This reverts commit 2a92f1e. * try something * fix other pipeline too * fixit * fix * fix * fix
1 parent 3973b33 commit fa715e6

File tree

3 files changed

+24
-10
lines changed

3 files changed

+24
-10
lines changed

.github/actions/build/python/action.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,8 @@ runs:
55
steps:
66
- name: Install project tools and dependencies
77
shell: bash
8-
run: make project-tools LANGUAGE=python
8+
run: |
9+
python -m venv .venv
10+
. .venv/bin/activate
11+
python -m pip install --upgrade pip
12+
make project-tools LANGUAGE=python

.github/workflows/ci.yaml

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -71,19 +71,23 @@ jobs:
7171
- name: Install Python ${{ matrix.python-version }}
7272
uses: actions/setup-python@v5
7373
with:
74-
python-version: ${{ matrix.python-version }}
75-
- name: Install core
74+
python-version: ${{ matrix.python-version }}
75+
- name: Install sdk
76+
working-directory: ./sdk-repo-updated
7677
run: |
7778
pip install poetry
7879
poetry config virtualenvs.create false
79-
git clone https://github.com/stackitcloud/stackit-sdk-python-core.git core
80-
cd core;make install;
81-
- name: Install sdk
82-
working-directory: ./sdk-repo-updated
83-
run: make install-dev
80+
python -m venv .venv
81+
. .venv/bin/activate
82+
python -m pip install --upgrade pip
83+
make install-dev
8484
- name: Lint
8585
working-directory: ./sdk-repo-updated
86-
run: make lint
86+
run: |
87+
. .venv/bin/activate
88+
make lint
8789
- name: Test
8890
working-directory: ./sdk-repo-updated
89-
run: make test
91+
run: |
92+
. .venv/bin/activate
93+
make test

.github/workflows/sdk-pr.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,4 +64,10 @@ jobs:
6464
GH_REPO: "stackitcloud/stackit-sdk-python"
6565
GH_TOKEN: ${{ secrets.SDK_PR_TOKEN }}
6666
run: |
67+
set -e
68+
python -m venv .venv
69+
. .venv/bin/activate
70+
python -m pip install --upgrade pip
71+
pip install poetry
72+
poetry config virtualenvs.create false
6773
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"

0 commit comments

Comments
 (0)