Skip to content

Commit ff9d95e

Browse files
Sofie Van Landeghemjikanter
authored andcommitted
disable mypy run for Python 3.10 (explosion#11508) (explosion#11512)
1 parent 5da54d1 commit ff9d95e

File tree

1 file changed

+17
-27
lines changed

1 file changed

+17
-27
lines changed

.github/azure-steps.yml

Lines changed: 17 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -64,22 +64,12 @@ steps:
6464
displayName: "Run GPU tests"
6565
condition: eq(${{ parameters.gpu }}, true)
6666
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')
8373
8474
- script: |
8575
python -m spacy convert extra/example_data/ner_example_data/ner-token-per-line-conll2003.json .
@@ -103,17 +93,17 @@ steps:
10393
displayName: 'Test train CLI'
10494
condition: eq(variables['python_version'], '3.8')
10595
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')
117107
118108
- script: |
119109
python .github/validate_universe_json.py website/meta/universe.json

0 commit comments

Comments
 (0)