Skip to content

Commit dc280fa

Browse files
committed
删除对spacy的依赖
1 parent 7ca8d04 commit dc280fa

File tree

4 files changed

+2
-3
lines changed

4 files changed

+2
-3
lines changed

.Jenkinsfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ pipeline {
2727
}
2828
stage('Package Testing') {
2929
steps {
30-
sh 'python -m spacy download en'
3130
sh 'pip install fitlog'
3231
sh 'pytest ./tests --html=test_results.html --self-contained-html'
3332
}

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ install:
1313
- pip install pytest-cov
1414
# command to run tests
1515
script:
16-
- python -m spacy download en
16+
# - python -m spacy download en
1717
- pytest --cov=fastNLP tests/
1818

1919
after_success:

requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,5 @@ torch>=1.0.0
33
tqdm>=4.28.1
44
prettytable>=0.7.2
55
requests
6-
spacy
76
prettytable>=0.7.2
87
regex!=2019.12.17

tests/io/pipe/test_matching.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ def test_load(self):
7474
name, vocabs = y
7575
self.assertEqual(x + 1 if name == 'words' else x, len(vocabs))
7676

77+
@unittest.skipIf('TRAVIS' in os.environ, "Skip in travis")
7778
def test_spacy(self):
7879
data_set_dict = {
7980
'Quora': ('tests/data_for_tests/io/Quora', QuoraPipe, QuoraBertPipe, (2, 2, 2), (93, 2)),

0 commit comments

Comments
 (0)