зеркало из
				https://github.com/ssciwr/AMMICO.git
				synced 2025-10-30 05:26:05 +02:00 
			
		
		
		
	Disabled macos. Skiped summary tests in windows.
Этот коммит содержится в:
		
							родитель
							
								
									089608c9fa
								
							
						
					
					
						Коммит
						9bbc8a7c2d
					
				
							
								
								
									
										10
									
								
								.github/workflows/ci.yml
									
									
									
									
										поставляемый
									
									
								
							
							
						
						
									
										10
									
								
								.github/workflows/ci.yml
									
									
									
									
										поставляемый
									
									
								
							| @ -14,7 +14,7 @@ jobs: | |||||||
|     runs-on: ${{ matrix.os }} |     runs-on: ${{ matrix.os }} | ||||||
|     strategy: |     strategy: | ||||||
|       matrix: |       matrix: | ||||||
|         os: [ubuntu-22.04,windows-latest,macos-latest] |         os: [ubuntu-22.04,windows-latest] | ||||||
|         python-version: [3.9] |         python-version: [3.9] | ||||||
|     steps: |     steps: | ||||||
|     - name: Checkout repository |     - name: Checkout repository | ||||||
| @ -29,10 +29,16 @@ jobs: | |||||||
|         python -m pip install -e . |         python -m pip install -e . | ||||||
|         python -m spacy download en_core_web_md |         python -m spacy download en_core_web_md | ||||||
|         python -m textblob.download_corpora |         python -m textblob.download_corpora | ||||||
|     - name: Run pytest |     - name: Run pytest linux (linux-only) | ||||||
|  |       if: matrix.os == 'ubuntu-22.04' | ||||||
|       run: | |       run: | | ||||||
|         cd ammico |         cd ammico | ||||||
|         python -m pytest -m "not gcv and not long" -svv --cov=. --cov-report=xml |         python -m pytest -m "not gcv and not long" -svv --cov=. --cov-report=xml | ||||||
|  |     - name: Run pytest windows(windows-only) | ||||||
|  |       if: matrix.os == 'windows-latest' | ||||||
|  |       run: | | ||||||
|  |         cd ammico | ||||||
|  |         python -m pytest -m "not gcv and not long and not win_skip" -svv --cov=. --cov-report=xml | ||||||
|     - name: Upload coverage |     - name: Upload coverage | ||||||
|       if: matrix.os == 'ubuntu-22.04' && matrix.python-version == '3.9' |       if: matrix.os == 'ubuntu-22.04' && matrix.python-version == '3.9' | ||||||
|       uses: codecov/codecov-action@v3 |       uses: codecov/codecov-action@v3 | ||||||
|  | |||||||
| @ -2,3 +2,4 @@ | |||||||
| markers = | markers = | ||||||
|     gcv: mark google cloud vision tests - skip to save money. |     gcv: mark google cloud vision tests - skip to save money. | ||||||
|     long: mark long running tests - skip to save compute resources. |     long: mark long running tests - skip to save compute resources. | ||||||
|  |     win_skip: mark tests that are skipped on windows. | ||||||
| @ -77,6 +77,7 @@ def test_analyse_image(get_dict): | |||||||
|         summary_vis_processors = None |         summary_vis_processors = None | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|  | @pytest.mark.win_skip | ||||||
| def test_analyse_questions(get_dict): | def test_analyse_questions(get_dict): | ||||||
|     list_of_questions = [ |     list_of_questions = [ | ||||||
|         "How many persons on the picture?", |         "How many persons on the picture?", | ||||||
|  | |||||||
		Загрузка…
	
	
			
			x
			
			
		
	
		Ссылка в новой задаче
	
	Block a user
	 Petr Andriushchenko
						Petr Andriushchenko