From 207827acb52c1147b1b147c3de06f8be0cea0cd6 Mon Sep 17 00:00:00 2001 From: Teresa Pelinski Date: Thu, 8 Aug 2024 16:14:51 +0100 Subject: [PATCH] manually activate venv --- .github/workflows/deploy-docs.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml index cdf4dae..2daa2d0 100644 --- a/.github/workflows/deploy-docs.yml +++ b/.github/workflows/deploy-docs.yml @@ -18,19 +18,20 @@ jobs: with: python-version: '3.9' # Specify the Python version you need - - name: Install dependencies + - name: Install dependencies and activate virtual environment env: PIPENV_VENV_IN_PROJECT: true run: | python -m pip install --upgrade pip pip install pipenv pipenv install -d - echo "pwd:!!" && pwd + export VENV_HOME_DIR=$(pipenv --venv) + source $VENV_HOME_DIR/bin/activate - name: Build documentation run: | - pipenv run pandoc -s readme.md -o docs/readme.rst - pipenv run sphinx-build -M html docs/ docs/_build + pandoc -s readme.md -o docs/readme.rst + sphinx-build -M html docs/ docs/_build - name: Deploy to GitHub Pages uses: peaceiris/actions-gh-pages@v3