From 76183391dabd40a42888950d429f28f8e2ede79c Mon Sep 17 00:00:00 2001 From: Paul O'Leary McCann Date: Mon, 31 Oct 2022 15:54:52 +0900 Subject: [PATCH] Add test that there are no warnings on module-based load This will succeed due to changes in this branch, but local tests with the latest release failed as intended. --- .github/azure-steps.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/azure-steps.yml b/.github/azure-steps.yml index cc0247b3a..a212665c7 100644 --- a/.github/azure-steps.yml +++ b/.github/azure-steps.yml @@ -72,6 +72,11 @@ steps: displayName: 'Test download CLI' condition: eq(variables['python_version'], '3.8') + - script: | + python -W error -c "import ca_core_news_sm; nlp = ca_core_news_sm.load(); doc=nlp('test')" + displayName: 'Test no warnings on load (#11713)' + condition: eq(variables['python_version'], '3.8') + - script: | python -m spacy convert extra/example_data/ner_example_data/ner-token-per-line-conll2003.json . displayName: 'Test convert CLI'