"...git@developer.sourcefind.cn:chenpangpang/transformers.git" did not exist on "db1a7f27a1ce8a296d6e5968307bf7451afa498f"
Commit 10724a81 authored by Aymeric Augustin's avatar Aymeric Augustin
Browse files

Run the slow tests every Monday morning.

parent a8d34e53
...@@ -14,6 +14,20 @@ jobs: ...@@ -14,6 +14,20 @@ jobs:
- run: sudo pip install codecov pytest-cov - run: sudo pip install codecov pytest-cov
- run: python -m pytest -n 8 --dist=loadfile -s -v ./tests/ --cov - run: python -m pytest -n 8 --dist=loadfile -s -v ./tests/ --cov
- run: codecov - run: codecov
run_all_tests_torch_and_tf:
working_directory: ~/transformers
docker:
- image: circleci/python:3.5
environment:
OMP_NUM_THREADS: 1
RUN_SLOW: yes
RUN_CUSTOM_TOKENIZERS: yes
resource_class: xlarge
parallelism: 1
steps:
- checkout
- run: sudo pip install .[mecab,sklearn,tf,torch,testing]
- run: python -m pytest -n 8 --dist=loadfile -s -v ./tests/
run_tests_torch: run_tests_torch:
working_directory: ~/transformers working_directory: ~/transformers
docker: docker:
...@@ -46,10 +60,12 @@ jobs: ...@@ -46,10 +60,12 @@ jobs:
working_directory: ~/transformers working_directory: ~/transformers
docker: docker:
- image: circleci/python:3.5 - image: circleci/python:3.5
environment:
RUN_CUSTOM_TOKENIZERS: yes
steps: steps:
- checkout - checkout
- run: sudo pip install .[mecab,testing] - run: sudo pip install .[mecab,testing]
- run: RUN_CUSTOM_TOKENIZERS=1 python -m pytest -sv ./tests/test_tokenization_bert_japanese.py - run: python -m pytest -sv ./tests/test_tokenization_bert_japanese.py
run_examples_torch: run_examples_torch:
working_directory: ~/transformers working_directory: ~/transformers
docker: docker:
...@@ -69,8 +85,8 @@ jobs: ...@@ -69,8 +85,8 @@ jobs:
- image: circleci/python:3.5 - image: circleci/python:3.5
steps: steps:
- add_ssh_keys: - add_ssh_keys:
fingerprints: fingerprints:
- "5b:7a:95:18:07:8c:aa:76:4c:60:35:88:ad:60:56:71" - "5b:7a:95:18:07:8c:aa:76:4c:60:35:88:ad:60:56:71"
- checkout - checkout
- run: sudo pip install .[tf,torch,docs] - run: sudo pip install .[tf,torch,docs]
- run: ./.circleci/deploy.sh - run: ./.circleci/deploy.sh
...@@ -115,3 +131,13 @@ workflows: ...@@ -115,3 +131,13 @@ workflows:
- run_tests_torch - run_tests_torch
- run_tests_tf - run_tests_tf
- deploy_doc: *workflow_filters - deploy_doc: *workflow_filters
run_slow_tests:
triggers:
- schedule:
cron: "0 4 * * 1"
filters:
branches:
only:
- master
jobs:
- run_all_tests_torch_and_tf
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment