Skip to content

Commit e64cf77

Browse files
committed
temp
1 parent 4371be1 commit e64cf77

1 file changed

Lines changed: 32 additions & 3 deletions

File tree

.github/workflows/reusable-build-app.yml

Lines changed: 32 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,13 +65,42 @@ jobs:
6565
echo "KONCENTRO_VERSION=$version" >> $env:GITHUB_ENV
6666
Write-Output "Koncentro version: $version"
6767
68+
- name: Install Poetry
69+
run: |
70+
python -m pip install --upgrade pip
71+
python -m pip install poetry
72+
73+
- name: Create venv and add to PATH (Linux and MacOS)
74+
if: matrix.os == 'ubuntu-22.04' || matrix.os == 'ubuntu-24.04-arm' || matrix.os == 'macos-latest' || matrix.os == 'macos-15-intel'
75+
env:
76+
POETRY_VIRTUALENVS_CREATE: true
77+
POETRY_VIRTUALENVS_IN_PROJECT: true
78+
run: |
79+
poetry env use python
80+
VENV_PATH=$(poetry env info -p)
81+
echo "VENV_PATH=$VENV_PATH" >> $GITHUB_ENV
82+
echo "$VENV_PATH/bin" >> $GITHUB_PATH
83+
84+
- name: Create venv and add to PATH (Windows)
85+
if: matrix.os == 'windows-latest'
86+
env:
87+
POETRY_VIRTUALENVS_CREATE: true
88+
POETRY_VIRTUALENVS_IN_PROJECT: true
89+
run: |
90+
poetry env use python
91+
$venvPath = poetry env info -p
92+
echo "VENV_PATH=$venvPath" >> $env:GITHUB_ENV
93+
echo "$venvPath\Scripts" >> $env:GITHUB_PATH
94+
6895
- name: Install dependencies
6996
env:
70-
POETRY_VIRTUALENVS_CREATE: false
97+
POETRY_VIRTUALENVS_CREATE: true
98+
POETRY_VIRTUALENVS_IN_PROJECT: true
99+
PIP_DEFAULT_TIMEOUT: 120
100+
PIP_RETRIES: 5
71101
run: |
72102
python -m pip install --upgrade pip
73-
python -m pip install poetry
74-
poetry install --no-cache --no-interaction --no-root
103+
poetry install --no-cache --no-interaction --no-root --only main,build
75104
76105
- name: Debug Packages
77106
run: |

0 commit comments

Comments
 (0)