Skip to content

Commit

Permalink
Fix the build documentation job (huggingface#14788)
Browse files Browse the repository at this point in the history
* Fix the build documentation job

* Fix install

* Address review comment
  • Loading branch information
sgugger authored Dec 16, 2021
1 parent 5061a9f commit 12e1b4c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/build_documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
branches:
- master
- doc-builder*
- v*-release

jobs:
build_and_package:
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 12e1b4c

Please sign in to comment.