зеркало из
				https://github.com/ssciwr/AMMICO.git
				synced 2025-10-30 05:26:05 +02:00 
			
		
		
		
	change CI and remove some code from utils
Этот коммит содержится в:
		
							родитель
							
								
									622ba40964
								
							
						
					
					
						Коммит
						1d31d188dc
					
				
							
								
								
									
										4
									
								
								.github/workflows/ci.yml
									
									
									
									
										поставляемый
									
									
								
							
							
						
						
									
										4
									
								
								.github/workflows/ci.yml
									
									
									
									
										поставляемый
									
									
								
							| @ -31,12 +31,12 @@ jobs: | |||||||
|         python -m textblob.download_corpora |         python -m textblob.download_corpora | ||||||
|     - name: Run pytest |     - name: Run pytest | ||||||
|       run: | |       run: | | ||||||
|         cd misinformation |         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: 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 | ||||||
|       with: |       with: | ||||||
|         fail_ci_if_error: true |         fail_ci_if_error: true | ||||||
|         files: misinformation/coverage.xml |         files: ammico/coverage.xml | ||||||
|         verbose: true |         verbose: true | ||||||
|  | |||||||
| @ -95,14 +95,3 @@ def append_data_to_dict(mydict: dict) -> dict: | |||||||
| def dump_df(mydict: dict) -> DataFrame: | def dump_df(mydict: dict) -> DataFrame: | ||||||
|     """Utility to dump the dictionary into a dataframe.""" |     """Utility to dump the dictionary into a dataframe.""" | ||||||
|     return DataFrame.from_dict(mydict) |     return DataFrame.from_dict(mydict) | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| if __name__ == "__main__": |  | ||||||
|     files = find_files( |  | ||||||
|         path="/home/inga/projects/misinformation-project/misinformation/data/test_no_text/" |  | ||||||
|     ) |  | ||||||
|     mydict = initialize_dict(files) |  | ||||||
|     outdict = {} |  | ||||||
|     outdict = append_data_to_dict(mydict) |  | ||||||
|     df = dump_df(outdict) |  | ||||||
|     print(df.head(10)) |  | ||||||
|  | |||||||
		Загрузка…
	
	
			
			x
			
			
		
	
		Ссылка в новой задаче
	
	Block a user
	 Petr Andriushchenko
						Petr Andriushchenko