Skip to content

Create coverage.yml#5

Open
swashko wants to merge 17 commits intomainfrom
coverage2
Open

Create coverage.yml#5
swashko wants to merge 17 commits intomainfrom
coverage2

Conversation

@swashko
Copy link
Owner

@swashko swashko commented Sep 28, 2023

No description provided.

@github-actions
Copy link

github-actions bot commented Sep 28, 2023

Hello
🌏 - separate job
[hello]
[poetry run pytest -q --cov=./
....... [100%]
=============================== warnings summary ===============================
modelscan/models/h5/scan.py:30
/home/runner/work/sam-modelscan/sam-modelscan/modelscan/models/h5/scan.py:30: DeprecationWarning: invalid escape sequence [
f"File: {source} \nTo scan an h5py file, please install modelscan with h5py extras. 'pip install "modelscan[h5py]"' if you are using pip.",

modelscan/models/saved_model/scan.py:34
/home/runner/work/sam-modelscan/sam-modelscan/modelscan/models/saved_model/scan.py:34: DeprecationWarning: invalid escape sequence [
f"File: {source} \nTo scan an tensorflow file, please install modelscan with tensorflow extras. 'pip install "modelscan[tensorflow]"' if you are using pip.",

tests/test_modelscan.py::test_scan_keras
/home/runner/work/sam-modelscan/sam-modelscan/.venv/lib/python3.8/site-packages/keras/src/engine/training.py:3000: UserWarning: You are saving your model as an HDF5 file via model.save(). This file format is considered legacy. We recommend using instead the native Keras format, e.g. model.save('my_model.keras').
saving_api.save_model(

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html

---------- coverage: platform linux, python 3.8.18-final-0 -----------
Name Stmts Miss Cover

modelscan/init.py 3 0 100%
modelscan/_version.py 1 0 100%
modelscan/cli.py 40 12 70%
modelscan/error.py 14 5 64%
modelscan/issues.py 58 13 78%
modelscan/models/init.py 3 0 100%
modelscan/models/h5/init.py 0 0 100%
modelscan/models/h5/scan.py 37 4 89%
modelscan/models/pickle/init.py 0 0 100%
modelscan/models/pickle/scan.py 47 6 87%
modelscan/models/saved_model/init.py 0 0 100%
modelscan/models/saved_model/scan.py 67 31 54%
modelscan/models/scan.py 18 3 83%
modelscan/modelscan.py 75 13 83%
modelscan/reports.py 37 17 54%
modelscan/tools/picklescanner.py 110 29 74%
modelscan/tools/utils.py 67 36 46%
tests/test_modelscan.py 214 1 99%
tests/test_secrets.py 0 0 100%
tests/test_utils.py 134 60 55%

TOTAL 925 230 75%

7 passed, 3 warnings in 9.34s]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant