Temporarily ignore W095 in assemble CLI CI test (#9460)

* Temporarily ignore W095 in assemble CLI CI test

* Adjust PR CI includes
This commit is contained in:
Adriane Boyd 2021-10-14 13:27:39 +02:00 committed by GitHub
parent fe6d63aedc
commit 8db574e0b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 4 deletions

View File

@ -94,7 +94,8 @@ steps:
- script: | - script: |
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')" 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')"
PYTHONWARNINGS="error,ignore::DeprecationWarning" python -m spacy assemble ner_source_sm.cfg output_dir # temporarily ignore W095
PYTHONWARNINGS="error,ignore:[W095]:UserWarning,ignore::DeprecationWarning" python -m spacy assemble ner_source_sm.cfg output_dir
displayName: 'Test assemble CLI' displayName: 'Test assemble CLI'
condition: eq(variables['python_version'], '3.8') condition: eq(variables['python_version'], '3.8')

View File

@ -13,10 +13,13 @@ trigger:
- "*.md" - "*.md"
pr: pr:
paths: paths:
exclude:
- "website/*"
- "*.md"
include: include:
- "*.cfg"
- "*.py"
- "*.toml"
- "*.yml"
- ".github/azure-steps.yml"
- "spacy/*"
- "website/meta/universe.json" - "website/meta/universe.json"
jobs: jobs: