From 7dcdee2d4538d42cf5328686643ab3da50e5d07d Mon Sep 17 00:00:00 2001 From: Mohsinsiddi Date: Tue, 24 Dec 2024 12:00:14 +0530 Subject: [PATCH] Update GitHub Actions workflow with docker poetry cache issues --- .github/workflows/python-tests.yml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/python-tests.yml b/.github/workflows/python-tests.yml index c24ed9f..bad519c 100644 --- a/.github/workflows/python-tests.yml +++ b/.github/workflows/python-tests.yml @@ -1,4 +1,4 @@ -name: Python Tests +name: Qucikstart Tests on: push: branches: @@ -57,9 +57,17 @@ jobs: sudo apt-get update sudo apt-get install -y git + - name: Clean Python cache + run: | + sudo rm -rf ~/.cache/pip + sudo rm -rf ~/.cache/poetry + sudo rm -rf .pytest_cache + sudo rm -rf .venv + sudo rm -rf poetry.lock + - name: Install Poetry run: | - curl -sSL https://install.python-poetry.org | python3 - + curl -sSL https://install.python-poetry.org | POETRY_VERSION=1.7.1 python3 - - name: Configure Poetry run: | @@ -76,7 +84,7 @@ jobs: - name: Install project dependencies run: | - poetry install --no-interaction --no-root + poetry install --no-interaction - name: Run tests run: |