Compare commits
3
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
40bb99e1be | ||
|
|
0e7d609a8b | ||
|
|
2493998ae0 |
No files matched your search
+19
-5
@@ -12,9 +12,23 @@ jobs:
|
|||||||
- checkout
|
- checkout
|
||||||
- run: sudo pip install .[sklearn,tf-cpu,torch,testing]
|
- run: sudo pip install .[sklearn,tf-cpu,torch,testing]
|
||||||
- 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 4 --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-cpu,torch,testing]
|
||||||
|
- run: python -m pytest -n 4 --dist=loadfile -s -v ./tests/
|
||||||
|
- no_output_timeout: 4h
|
||||||
run_tests_torch:
|
run_tests_torch:
|
||||||
working_directory: ~/transformers
|
working_directory: ~/transformers
|
||||||
docker:
|
docker:
|
||||||
@@ -27,7 +41,7 @@ jobs:
|
|||||||
- checkout
|
- checkout
|
||||||
- run: sudo pip install .[sklearn,torch,testing]
|
- run: sudo pip install .[sklearn,torch,testing]
|
||||||
- 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 4 --dist=loadfile -s -v ./tests/ --cov
|
||||||
- run: codecov
|
- run: codecov
|
||||||
run_tests_tf:
|
run_tests_tf:
|
||||||
working_directory: ~/transformers
|
working_directory: ~/transformers
|
||||||
@@ -41,7 +55,7 @@ jobs:
|
|||||||
- checkout
|
- checkout
|
||||||
- run: sudo pip install .[sklearn,tf-cpu,testing]
|
- run: sudo pip install .[sklearn,tf-cpu,testing]
|
||||||
- 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 4 --dist=loadfile -s -v ./tests/ --cov
|
||||||
- run: codecov
|
- run: codecov
|
||||||
run_tests_custom_tokenizers:
|
run_tests_custom_tokenizers:
|
||||||
working_directory: ~/transformers
|
working_directory: ~/transformers
|
||||||
@@ -65,7 +79,7 @@ jobs:
|
|||||||
- checkout
|
- checkout
|
||||||
- run: sudo pip install .[sklearn,torch,testing]
|
- run: sudo pip install .[sklearn,torch,testing]
|
||||||
- run: sudo pip install -r examples/requirements.txt
|
- run: sudo pip install -r examples/requirements.txt
|
||||||
- run: python -m pytest -n 8 --dist=loadfile -s -v ./examples/
|
- run: python -m pytest -n 4 --dist=loadfile -s -v ./examples/
|
||||||
deploy_doc:
|
deploy_doc:
|
||||||
working_directory: ~/transformers
|
working_directory: ~/transformers
|
||||||
docker:
|
docker:
|
||||||
|
|||||||
@@ -291,7 +291,6 @@ class MultiColumnInputTestCase(unittest.TestCase):
|
|||||||
self._test_multicolumn_pipeline(nlp, valid_samples, invalid_samples, mandatory_output_keys)
|
self._test_multicolumn_pipeline(nlp, valid_samples, invalid_samples, mandatory_output_keys)
|
||||||
|
|
||||||
@require_tf
|
@require_tf
|
||||||
@unittest.skip("This test is failing intermittently. Skipping it until we resolve.")
|
|
||||||
def test_tf_question_answering(self):
|
def test_tf_question_answering(self):
|
||||||
mandatory_output_keys = {"score", "answer", "start", "end"}
|
mandatory_output_keys = {"score", "answer", "start", "end"}
|
||||||
valid_samples = [
|
valid_samples = [
|
||||||
|
|||||||
Reference in new issue
Block a user