From b0c9fbb29340d161740c5aca9fb47b8c506ad49f Mon Sep 17 00:00:00 2001 From: Harutaka Kawamura Date: Sat, 18 Apr 2020 00:23:18 +0900 Subject: [PATCH] Add workflow to build docs (#3763) --- .circleci/config.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index a9a31ba131..e580f78848 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -66,6 +66,16 @@ jobs: - run: sudo pip install .[sklearn,torch,testing] - run: sudo pip install -r examples/requirements.txt - 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: working_directory: ~/transformers docker: @@ -117,4 +127,5 @@ workflows: - run_tests_torch_and_tf - run_tests_torch - run_tests_tf + - build_doc - deploy_doc: *workflow_filters