From 37594c210348897827c09800f4381110621dca16 Mon Sep 17 00:00:00 2001 From: Cary Phillips Date: Mon, 13 May 2024 12:39:07 -0400 Subject: [PATCH] Install website requirements in venv (#1749) Apparently, macOS doesn't like to pip install into the system-wide location, it prefers a venv. Signed-off-by: Cary Phillips --- .github/workflows/website.yml | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/.github/workflows/website.yml b/.github/workflows/website.yml index d29adcc630..c86285ba81 100644 --- a/.github/workflows/website.yml +++ b/.github/workflows/website.yml @@ -25,14 +25,14 @@ on: - RB-* paths: - 'website/**' - - '.github/workflows/website_workflow.yml' + - '.github/workflows/website.yml' pull_request: branches-ignore: - RB-* paths: - 'website/**' - - '.github/workflows/website_workflow.yml' + - '.github/workflows/website.yml' permissions: contents: read @@ -61,12 +61,17 @@ jobs: run: ./website/scripts/install_doxygen.sh ${DOXYGEN_VERSION} shell: bash - name: Install sphinx requirements - run: pip3 install -r website/requirements.txt - - name: Configure - run: cmake .. -DBUILD_WEBSITE=ON -DCMAKE_VERBOSE_MAKEFILE=ON + run: | + python3 -m venv _venv + source _venv/*/activate + pip3 install -r ../website/requirements.txt + cmake .. -DBUILD_WEBSITE=ON -DCMAKE_VERBOSE_MAKEFILE=ON working-directory: _build + shell: bash - name: Build - run: cmake --build . --target website --config Release + run: | + cmake --build . --target website --config Release working-directory: _build + shell: bash