CircleCI test config
This commit is contained in:
+34
-9
@@ -255,6 +255,20 @@ jobs:
|
||||
- checkout
|
||||
- run: pip install requests
|
||||
- run: python ./utils/link_tester.py
|
||||
deploy_notebooks:
|
||||
working_directory: ~/transformers
|
||||
docker:
|
||||
- image: circleci/python:3.6
|
||||
steps:
|
||||
- add_ssh_keys:
|
||||
fingerprints:
|
||||
- "5b:7a:95:18:07:8c:aa:76:4c:60:35:88:ad:60:56:71"
|
||||
- checkout
|
||||
- run: pip install --upgrade pip
|
||||
- run: pip install nbformat
|
||||
- run: python .circleci/generate_notebooks.py
|
||||
- run: scp -r -oStrictHostKeyChecking=no ./doc_notebooks/* $doc:$dir/doc_notebooks
|
||||
|
||||
|
||||
# TPU JOBS
|
||||
run_examples_tpu:
|
||||
@@ -293,15 +307,26 @@ workflows:
|
||||
version: 2
|
||||
build_and_test:
|
||||
jobs:
|
||||
- check_code_quality
|
||||
- check_repository_consistency
|
||||
- run_examples_torch
|
||||
- run_tests_custom_tokenizers
|
||||
- run_tests_torch_and_tf
|
||||
- run_tests_torch
|
||||
- run_tests_tf
|
||||
- build_doc
|
||||
- deploy_doc: *workflow_filters
|
||||
# - check_code_quality
|
||||
# - check_repository_consistency
|
||||
# - run_examples_torch
|
||||
# - run_tests_custom_tokenizers
|
||||
# - run_tests_torch_and_tf
|
||||
# - run_tests_torch
|
||||
# - run_tests_tf
|
||||
# - build_doc
|
||||
# - deploy_doc: *workflow_filters
|
||||
- deploy_notebooks
|
||||
notebooks:
|
||||
triggers:
|
||||
- schedule:
|
||||
cron: "0 8 * * *"
|
||||
filters:
|
||||
branches:
|
||||
only:
|
||||
- master
|
||||
jobs:
|
||||
- deploy_notebooks
|
||||
# tpu_testing_jobs:
|
||||
# triggers:
|
||||
# - schedule:
|
||||
|
||||
@@ -5,7 +5,7 @@ import shutil
|
||||
|
||||
# Launch from root of repo
|
||||
PATH_TO_DOCS = 'docs/source'
|
||||
PATH_TO_DEST = 'docs'
|
||||
PATH_TO_DEST = 'doc_notebooks'
|
||||
DOC_BASE_URL = "https://huggingface.co/transformers/"
|
||||
|
||||
# These are the doc files converted, add any new tutorial to this list if you want it handled by the conversion
|
||||
|
||||
Reference in New Issue
Block a user