@@ -64,22 +64,12 @@ steps:
64
64
displayName: "Run GPU tests"
65
65
condition: eq(${{ parameters.gpu }}, true)
66
66
67
- # - script: |
68
- # python -m spacy download ca_core_news_sm
69
- # python -m spacy download ca_core_news_md
70
- # python -c "import spacy; nlp=spacy.load('ca_core_news_sm'); doc=nlp('test')"
71
- # displayName: 'Test download CLI'
72
- # condition: eq(variables['python_version'], '3.8')
73
- #
74
- # - script: |
75
- # python -W error -c "import ca_core_news_sm; nlp = ca_core_news_sm.load(); doc=nlp('test')"
76
- # displayName: 'Test no warnings on load (#11713)'
77
- # condition: eq(variables['python_version'], '3.8')
78
- #
79
- # - script: |
80
- # python -m spacy download ca_core_news_sm 2>&1 | grep -q skipping
81
- # displayName: 'Test skip re-download (#12188)'
82
- # condition: eq(variables['python_version'], '3.8')
67
+ - script : |
68
+ python -m spacy download ca_core_news_sm
69
+ python -m spacy download ca_core_news_md
70
+ python -c "import spacy; nlp=spacy.load('ca_core_news_sm'); doc=nlp('test')"
71
+ displayName: 'Test download CLI'
72
+ condition: eq(variables['python_version'], '3.8')
83
73
84
74
- script : |
85
75
python -m spacy convert extra/example_data/ner_example_data/ner-token-per-line-conll2003.json .
@@ -103,17 +93,17 @@ steps:
103
93
displayName: 'Test train CLI'
104
94
condition: eq(variables['python_version'], '3.8')
105
95
106
- # - script: |
107
- # python -c "import spacy; config = spacy.util.load_config('ner.cfg'); config['components']['ner'] = {'source': 'ca_core_news_sm'}; config.to_disk('ner_source_sm.cfg')"
108
- # PYTHONWARNINGS="error,ignore::DeprecationWarning" python -m spacy assemble ner_source_sm.cfg output_dir
109
- # displayName: 'Test assemble CLI'
110
- # condition: eq(variables['python_version'], '3.8')
111
- #
112
- # - script: |
113
- # python -c "import spacy; config = spacy.util.load_config('ner.cfg'); config['components']['ner'] = {'source': 'ca_core_news_md'}; config.to_disk('ner_source_md.cfg')"
114
- # python -m spacy assemble ner_source_md.cfg output_dir 2>&1 | grep -q W113
115
- # displayName: 'Test assemble CLI vectors warning'
116
- # condition: eq(variables['python_version'], '3.8')
96
+ - script : |
97
+ python -c "import spacy; config = spacy.util.load_config('ner.cfg'); config['components']['ner'] = {'source': 'ca_core_news_sm'}; config.to_disk('ner_source_sm.cfg')"
98
+ PYTHONWARNINGS="error,ignore::DeprecationWarning" python -m spacy assemble ner_source_sm.cfg output_dir
99
+ displayName: 'Test assemble CLI'
100
+ condition: eq(variables['python_version'], '3.8')
101
+
102
+ - script : |
103
+ python -c "import spacy; config = spacy.util.load_config('ner.cfg'); config['components']['ner'] = {'source': 'ca_core_news_md'}; config.to_disk('ner_source_md.cfg')"
104
+ python -m spacy assemble ner_source_md.cfg output_dir 2>&1 | grep -q W113
105
+ displayName: 'Test assemble CLI vectors warning'
106
+ condition: eq(variables['python_version'], '3.8')
117
107
118
108
- script : |
119
109
python .github/validate_universe_json.py website/meta/universe.json
0 commit comments