From dc280fa1cb565714d71b3e518ce7b413f9d8cf8a Mon Sep 17 00:00:00 2001 From: yh_cc Date: Fri, 11 Dec 2020 14:03:10 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E5=AF=B9spacy=E7=9A=84?= =?UTF-8?q?=E4=BE=9D=E8=B5=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .Jenkinsfile | 1 - .travis.yml | 2 +- requirements.txt | 1 - tests/io/pipe/test_matching.py | 1 + 4 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.Jenkinsfile b/.Jenkinsfile index 87c286ee..5da7bb62 100644 --- a/.Jenkinsfile +++ b/.Jenkinsfile @@ -27,7 +27,6 @@ pipeline { } stage('Package Testing') { steps { - sh 'python -m spacy download en' sh 'pip install fitlog' sh 'pytest ./tests --html=test_results.html --self-contained-html' } diff --git a/.travis.yml b/.travis.yml index 9c1ff4d3..4fc99810 100644 --- a/.travis.yml +++ b/.travis.yml @@ -13,7 +13,7 @@ install: - pip install pytest-cov # command to run tests script: - - python -m spacy download en +# - python -m spacy download en - pytest --cov=fastNLP tests/ after_success: diff --git a/requirements.txt b/requirements.txt index 81fb307c..09501827 100644 --- a/requirements.txt +++ b/requirements.txt @@ -3,6 +3,5 @@ torch>=1.0.0 tqdm>=4.28.1 prettytable>=0.7.2 requests -spacy prettytable>=0.7.2 regex!=2019.12.17 \ No newline at end of file diff --git a/tests/io/pipe/test_matching.py b/tests/io/pipe/test_matching.py index 23f450db..0cace97c 100644 --- a/tests/io/pipe/test_matching.py +++ b/tests/io/pipe/test_matching.py @@ -74,6 +74,7 @@ class TestRunMatchingPipe(unittest.TestCase): name, vocabs = y self.assertEqual(x + 1 if name == 'words' else x, len(vocabs)) + @unittest.skipIf('TRAVIS' in os.environ, "Skip in travis") def test_spacy(self): data_set_dict = { 'Quora': ('tests/data_for_tests/io/Quora', QuoraPipe, QuoraBertPipe, (2, 2, 2), (93, 2)),