From 12e1b4c6dfbd1938441907183d20fc6ceb5d7b05 Mon Sep 17 00:00:00 2001 From: Sylvain Gugger <35901082+sgugger@users.noreply.github.com> Date: Thu, 16 Dec 2021 09:35:20 -0500 Subject: [PATCH] Fix the build documentation job (#14788) * Fix the build documentation job * Fix install * Address review comment --- .github/workflows/build_documentation.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build_documentation.yml b/.github/workflows/build_documentation.yml index ff928f1eb2..4d9e90f83f 100644 --- a/.github/workflows/build_documentation.yml +++ b/.github/workflows/build_documentation.yml @@ -5,6 +5,7 @@ on: branches: - master - doc-builder* + - v*-release jobs: build_and_package: @@ -46,7 +47,9 @@ jobs: sudo apt-get -y update && sudo apt-get install -y libsndfile1-dev pip install git+https://github.com/huggingface/doc-builder - pip install git+https://github.com/huggingface/transformers#egg=transformers[dev] + cd transformers + pip install .[dev] + cd .. export TORCH_VERSION=$(python -c "from torch import version; print(version.__version__.split('+')[0])") pip install torch-scatter -f https://data.pyg.org/whl/torch-${TORCH_VERSION}+cpu.html