@@ -27,7 +27,6 @@ pipeline { | |||||
} | } | ||||
stage('Package Testing') { | stage('Package Testing') { | ||||
steps { | steps { | ||||
sh 'python -m spacy download en' | |||||
sh 'pip install fitlog' | sh 'pip install fitlog' | ||||
sh 'pytest ./tests --html=test_results.html --self-contained-html' | sh 'pytest ./tests --html=test_results.html --self-contained-html' | ||||
} | } | ||||
@@ -13,7 +13,7 @@ install: | |||||
- pip install pytest-cov | - pip install pytest-cov | ||||
# command to run tests | # command to run tests | ||||
script: | script: | ||||
- python -m spacy download en | |||||
# - python -m spacy download en | |||||
- pytest --cov=fastNLP tests/ | - pytest --cov=fastNLP tests/ | ||||
after_success: | after_success: | ||||
@@ -3,6 +3,5 @@ torch>=1.0.0 | |||||
tqdm>=4.28.1 | tqdm>=4.28.1 | ||||
prettytable>=0.7.2 | prettytable>=0.7.2 | ||||
requests | requests | ||||
spacy | |||||
prettytable>=0.7.2 | prettytable>=0.7.2 | ||||
regex!=2019.12.17 | regex!=2019.12.17 |
@@ -74,6 +74,7 @@ class TestRunMatchingPipe(unittest.TestCase): | |||||
name, vocabs = y | name, vocabs = y | ||||
self.assertEqual(x + 1 if name == 'words' else x, len(vocabs)) | self.assertEqual(x + 1 if name == 'words' else x, len(vocabs)) | ||||
@unittest.skipIf('TRAVIS' in os.environ, "Skip in travis") | |||||
def test_spacy(self): | def test_spacy(self): | ||||
data_set_dict = { | data_set_dict = { | ||||
'Quora': ('tests/data_for_tests/io/Quora', QuoraPipe, QuoraBertPipe, (2, 2, 2), (93, 2)), | 'Quora': ('tests/data_for_tests/io/Quora', QuoraPipe, QuoraBertPipe, (2, 2, 2), (93, 2)), | ||||