From 5b503730ea178fac93352b6f230c6515e2b62011 Mon Sep 17 00:00:00 2001 From: Jake Stevens-Haas <37048747+Jacob-Stevens-Haas@users.noreply.github.com> Date: Tue, 18 Jun 2024 14:20:17 -0700 Subject: [PATCH] CI: In doc build install poetry if no cache hit --- .github/workflows/pull-docs.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/pull-docs.yml b/.github/workflows/pull-docs.yml index f6d3bea..46756fa 100644 --- a/.github/workflows/pull-docs.yml +++ b/.github/workflows/pull-docs.yml @@ -28,6 +28,13 @@ jobs: with: path: ~/.local # the path depends on the OS key: poetry-${{ matrix.poetry-version }} + - name: Install poetry + if: steps.cached-poetry.outputs.cache-hit != 'true' + uses: snok/install-poetry@v1 + with: + version: ${{ matrix.poetry-version }} + virtualenvs-create: true + virtualenvs-in-project: true # ====== # Load cached venv if cache exists # Install dependencies if cache does not exist