Run the slow tests every Monday morning.

This commit is contained in:
Aymeric Augustin
2019-12-24 09:09:13 +01:00
parent a8d34e534e
commit 10724a8123

View File

@@ -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:
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:
@@ -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