From 5bb1de1afcde9a7d155fc5212b8ac058543c6f84 Mon Sep 17 00:00:00 2001 From: christopherfrige Date: Tue, 12 Mar 2024 17:53:52 -0300 Subject: [PATCH] feat: simplifing pipeline --- .github/workflows/test-backend.yaml | 25 ++----------------------- 1 file changed, 2 insertions(+), 23 deletions(-) diff --git a/.github/workflows/test-backend.yaml b/.github/workflows/test-backend.yaml index d4a2f72..2da7ca1 100644 --- a/.github/workflows/test-backend.yaml +++ b/.github/workflows/test-backend.yaml @@ -26,37 +26,16 @@ jobs: uses: actions/setup-python@v5 with: python-version: ${{ env.PYTHON_VERSION }} - - - - name: Load cached Poetry installation - id: cached-poetry - uses: actions/cache@v3 - with: - path: ~/.local - key: poetry-0 + cache: 'poetry' - name: Install poetry if: steps.cached-poetry.outputs.cache-hit != 'true' - uses: snok/install-poetry@v1 - with: - version: 1.5.1 - virtualenvs-create: true - virtualenvs-in-project: true - virtualenvs-path: ~/venv - + run: pipx install poetry - - name: Load cached venv - id: cached-poetry-dependencies - uses: actions/cache@v3 - with: - path: ~/venv - key: venv-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }} - - name: Install dependencies run: poetry install --no-interaction --no-root - if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true' - name: Run unit tests