Add workflow to build docs (#3763)

This commit is contained in:
Harutaka Kawamura
2020-04-18 00:23:18 +09:00
committed by GitHub
parent c19727fd38
commit b0c9fbb293

View File

@@ -66,6 +66,16 @@ jobs:
- run: sudo pip install .[sklearn,torch,testing] - run: sudo pip install .[sklearn,torch,testing]
- run: sudo pip install -r examples/requirements.txt - run: sudo pip install -r examples/requirements.txt
- run: python -m pytest -n 8 --dist=loadfile -s -v ./examples/ - run: python -m pytest -n 8 --dist=loadfile -s -v ./examples/
build_doc:
working_directory: ~/transformers
docker:
- image: circleci/python:3.6
steps:
- checkout
- run: sudo pip install .[tf,torch,docs]
- run: cd docs && make html
- store_artifacts:
path: ./docs/_build
deploy_doc: deploy_doc:
working_directory: ~/transformers working_directory: ~/transformers
docker: docker:
@@ -117,4 +127,5 @@ workflows:
- run_tests_torch_and_tf - run_tests_torch_and_tf
- run_tests_torch - run_tests_torch
- run_tests_tf - run_tests_tf
- build_doc
- deploy_doc: *workflow_filters - deploy_doc: *workflow_filters