From 9689ae4b74c52b1f2eed4ff32d4fd855fef0c5c2 Mon Sep 17 00:00:00 2001 From: Jhony Lucas Date: Fri, 12 Jul 2024 10:40:47 -0300 Subject: [PATCH] chore: update deploy-docs.yml to activate virtual environment and install requirements before building and deploying docs --- .github/workflows/deploy-docs.yml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml index 16c183435..357829322 100644 --- a/.github/workflows/deploy-docs.yml +++ b/.github/workflows/deploy-docs.yml @@ -20,13 +20,11 @@ jobs: cache: poetry python-version: '3.7' - - name: Install requirements + - name: Install requirements and activate environment working-directory: ./python-package - run: poetry install - - - name: Activate virtual environment - working-directory: ./python-package - run: source $(poetry env info --path)/bin/activate + run: | + poetry install + echo "$(poetry env info --path)/bin" >> $GITHUB_PATH - name: Build and deploy docs working-directory: ./docs