mirror of
				https://github.com/explosion/spaCy.git
				synced 2025-11-04 01:48:04 +03:00 
			
		
		
		
	Merge pull request #12794 from adrianeboyd/chore/v3.6.0-2
Reenable compat+models tests for v3.6.0
This commit is contained in:
		
						commit
						6fc153a266
					
				
							
								
								
									
										54
									
								
								.github/workflows/tests.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										54
									
								
								.github/workflows/tests.yml
									
									
									
									
										vendored
									
									
								
							| 
						 | 
					@ -111,22 +111,22 @@ jobs:
 | 
				
			||||||
      - name: Test import
 | 
					      - name: Test import
 | 
				
			||||||
        run: python -W error -c "import spacy"
 | 
					        run: python -W error -c "import spacy"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#      - name: "Test download CLI"
 | 
					      - name: "Test download CLI"
 | 
				
			||||||
#        run: |
 | 
					        run: |
 | 
				
			||||||
#          python -m spacy download ca_core_news_sm
 | 
					          python -m spacy download ca_core_news_sm
 | 
				
			||||||
#          python -m spacy download ca_core_news_md
 | 
					          python -m spacy download ca_core_news_md
 | 
				
			||||||
#          python -c "import spacy; nlp=spacy.load('ca_core_news_sm'); doc=nlp('test')"
 | 
					          python -c "import spacy; nlp=spacy.load('ca_core_news_sm'); doc=nlp('test')"
 | 
				
			||||||
#        if: matrix.python_version == '3.9'
 | 
					        if: matrix.python_version == '3.9'
 | 
				
			||||||
#
 | 
					
 | 
				
			||||||
#      - name: "Test download_url in info CLI"
 | 
					      - name: "Test download_url in info CLI"
 | 
				
			||||||
#        run: |
 | 
					        run: |
 | 
				
			||||||
#          python -W error -m spacy info ca_core_news_sm | grep -q download_url
 | 
					          python -W error -m spacy info ca_core_news_sm | grep -q download_url
 | 
				
			||||||
#        if: matrix.python_version == '3.9'
 | 
					        if: matrix.python_version == '3.9'
 | 
				
			||||||
#
 | 
					
 | 
				
			||||||
#      - name: "Test no warnings on load (#11713)"
 | 
					      - name: "Test no warnings on load (#11713)"
 | 
				
			||||||
#        run: |
 | 
					        run: |
 | 
				
			||||||
#          python -W error -c "import ca_core_news_sm; nlp = ca_core_news_sm.load(); doc=nlp('test')"
 | 
					          python -W error -c "import ca_core_news_sm; nlp = ca_core_news_sm.load(); doc=nlp('test')"
 | 
				
			||||||
#        if: matrix.python_version == '3.9'
 | 
					        if: matrix.python_version == '3.9'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      - name: "Test convert CLI"
 | 
					      - name: "Test convert CLI"
 | 
				
			||||||
        run: |
 | 
					        run: |
 | 
				
			||||||
| 
						 | 
					@ -150,17 +150,17 @@ jobs:
 | 
				
			||||||
          python -m spacy train ner.cfg --paths.train ner-token-per-line-conll2003.spacy --paths.dev ner-token-per-line-conll2003.spacy --training.max_steps 10 --gpu-id -1
 | 
					          python -m spacy train ner.cfg --paths.train ner-token-per-line-conll2003.spacy --paths.dev ner-token-per-line-conll2003.spacy --training.max_steps 10 --gpu-id -1
 | 
				
			||||||
        if: matrix.python_version == '3.9'
 | 
					        if: matrix.python_version == '3.9'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#      - name: "Test assemble CLI"
 | 
					      - name: "Test assemble CLI"
 | 
				
			||||||
#        run: |
 | 
					        run: |
 | 
				
			||||||
#          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
 | 
					          PYTHONWARNINGS="error,ignore::DeprecationWarning" python -m spacy assemble ner_source_sm.cfg output_dir
 | 
				
			||||||
#        if: matrix.python_version == '3.9'
 | 
					        if: matrix.python_version == '3.9'
 | 
				
			||||||
#
 | 
					
 | 
				
			||||||
#      - name: "Test assemble CLI vectors warning"
 | 
					      - name: "Test assemble CLI vectors warning"
 | 
				
			||||||
#        run: |
 | 
					        run: |
 | 
				
			||||||
#          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')"
 | 
					          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')"
 | 
				
			||||||
#          python -m spacy assemble ner_source_md.cfg output_dir 2>&1 | grep -q W113
 | 
					          python -m spacy assemble ner_source_md.cfg output_dir 2>&1 | grep -q W113
 | 
				
			||||||
#        if: matrix.python_version == '3.9'
 | 
					        if: matrix.python_version == '3.9'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      - name: "Install test requirements"
 | 
					      - name: "Install test requirements"
 | 
				
			||||||
        run: |
 | 
					        run: |
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -697,7 +697,6 @@ def test_string_to_list_intify(value):
 | 
				
			||||||
    assert string_to_list(value, intify=True) == [1, 2, 3]
 | 
					    assert string_to_list(value, intify=True) == [1, 2, 3]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@pytest.mark.skip(reason="Temporarily skip before models are published")
 | 
					 | 
				
			||||||
def test_download_compatibility():
 | 
					def test_download_compatibility():
 | 
				
			||||||
    spec = SpecifierSet("==" + about.__version__)
 | 
					    spec = SpecifierSet("==" + about.__version__)
 | 
				
			||||||
    spec.prereleases = False
 | 
					    spec.prereleases = False
 | 
				
			||||||
| 
						 | 
					@ -708,7 +707,6 @@ def test_download_compatibility():
 | 
				
			||||||
        assert get_minor_version(about.__version__) == get_minor_version(version)
 | 
					        assert get_minor_version(about.__version__) == get_minor_version(version)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@pytest.mark.skip(reason="Temporarily skip before models are published")
 | 
					 | 
				
			||||||
def test_validate_compatibility_table():
 | 
					def test_validate_compatibility_table():
 | 
				
			||||||
    spec = SpecifierSet("==" + about.__version__)
 | 
					    spec = SpecifierSet("==" + about.__version__)
 | 
				
			||||||
    spec.prereleases = False
 | 
					    spec.prereleases = False
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user