Fix the build documentation job (#14788)
* Fix the build documentation job * Fix install * Address review comment
This commit is contained in:
5
.github/workflows/build_documentation.yml
vendored
5
.github/workflows/build_documentation.yml
vendored
@@ -5,6 +5,7 @@ on:
|
|||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
- doc-builder*
|
- doc-builder*
|
||||||
|
- v*-release
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build_and_package:
|
build_and_package:
|
||||||
@@ -46,7 +47,9 @@ jobs:
|
|||||||
sudo apt-get -y update && sudo apt-get install -y libsndfile1-dev
|
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/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])")
|
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
|
pip install torch-scatter -f https://data.pyg.org/whl/torch-${TORCH_VERSION}+cpu.html
|
||||||
|
|||||||
Reference in New Issue
Block a user