зеркало из
https://github.com/ssciwr/AMMICO.git
synced 2025-10-29 13:06:04 +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
|
||||
- name: Run pytest
|
||||
run: |
|
||||
cd misinformation
|
||||
cd ammico
|
||||
python -m pytest -m "not gcv and not long" -svv --cov=. --cov-report=xml
|
||||
- name: Upload coverage
|
||||
if: matrix.os == 'ubuntu-22.04' && matrix.python-version == '3.9'
|
||||
uses: codecov/codecov-action@v3
|
||||
with:
|
||||
fail_ci_if_error: true
|
||||
files: misinformation/coverage.xml
|
||||
files: ammico/coverage.xml
|
||||
verbose: true
|
||||
|
||||
@ -95,14 +95,3 @@ def append_data_to_dict(mydict: dict) -> dict:
|
||||
def dump_df(mydict: dict) -> DataFrame:
|
||||
"""Utility to dump the dictionary into a dataframe."""
|
||||
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