From d2d6f0d1bcee209d4bc164cdb204c795082d5ffd Mon Sep 17 00:00:00 2001 From: Moggach Date: Mon, 2 Sep 2024 16:51:08 +0000 Subject: [PATCH] uninstall existing poetry version --- .github/workflows/pull-request.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index d07901c..dec48d5 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -35,8 +35,11 @@ jobs: path: /home/runner/docker/.cache/poetry key: do-app-baseimage-django-node:364385f9d196a2bbe2d5faea025520cc0316501f-poetry-${{ hashFiles('poetry.lock') }} - run: | - python -m pip install --upgrade pip - pip install poetry - poetry self update + # Uninstall the existing Poetry version + pip uninstall -y poetry + # Install Poetry using the recommended installer + curl -sSL https://install.python-poetry.org | python3 - + # Ensure Poetry is in the PATH + export PATH="$HOME/.local/bin:$PATH" - run: make install - run: make ci