mirror of
https://github.com/huggingface/transformers.git
synced 2025-07-04 05:10:06 +06:00
Documentation auto-deploy
This commit is contained in:
parent
fe8fb10b44
commit
e7fba4bef5
@ -26,9 +26,27 @@ jobs:
|
|||||||
- run: sudo pip install pytest codecov pytest-cov
|
- run: sudo pip install pytest codecov pytest-cov
|
||||||
- run: python -m pytest -sv ./pytorch_transformers/tests/ --cov
|
- run: python -m pytest -sv ./pytorch_transformers/tests/ --cov
|
||||||
- run: codecov
|
- run: codecov
|
||||||
|
deploy_doc:
|
||||||
|
working_directory: ~/pytorch-transformers
|
||||||
|
docker:
|
||||||
|
- image: circleci/python:3.5
|
||||||
|
steps:
|
||||||
|
- add_ssh_keys:
|
||||||
|
fingerprints:
|
||||||
|
- "5b:7a:95:18:07:8c:aa:76:4c:60:35:88:ad:60:56:71"
|
||||||
|
- checkout
|
||||||
|
- run: sudo pip install -r docs/requirements.txt
|
||||||
|
- run: sudo pip install -r requirements.txt
|
||||||
|
- run: cd docs && make clean && make html && scp -r -oStrictHostKeyChecking=no _build/html/* $doc:$dir
|
||||||
|
workflow_filters: &workflow_filters
|
||||||
|
filters:
|
||||||
|
branches:
|
||||||
|
only:
|
||||||
|
- master
|
||||||
workflows:
|
workflows:
|
||||||
version: 2
|
version: 2
|
||||||
build_and_test:
|
build_and_test:
|
||||||
jobs:
|
jobs:
|
||||||
- build_py3
|
- build_py3
|
||||||
- build_py2
|
- build_py2
|
||||||
|
- deploy_doc: *workflow_filters
|
Loading…
Reference in New Issue
Block a user