Accelerate Tests

- add only pytest to the circleci for testing it
- add more filtering to pytest scripts
- add pytest-cov to reqs
This commit is contained in:
Ömer Faruk Özdemir 2022-02-08 19:56:58 +03:00
parent a502c94a99
commit 91d09b15ea
5 changed files with 13 additions and 4 deletions

View File

@ -40,6 +40,7 @@ jobs:
- run:
command: |
. venv/bin/activate
python -m pytest
coverage run -m pytest
coverage xml
- codecov/upload:

View File

@ -4,5 +4,5 @@ if [ -z "$(ls | grep CONTRIBUTING.md)" ]; then
exit -1
else
echo "Running the tests"
python -m pytest --durations=0 test
python -m pytest --cov=gradio --durations=20 --durations-min=1 test
fi

View File

@ -4,5 +4,5 @@ if [ -z "$(ls | grep CONTRIBUTING.md)" ]; then
exit -1
else
echo "Running the tests"
python -m pytest --durations=0 test/local
python -m pytest --cov=gradio --durations=20 --durations-min=0.1 test/local
fi

View File

@ -10,3 +10,4 @@ shap
pytest
wandb
huggingface_hub
pytest-cov

View File

@ -50,8 +50,10 @@ comet-ml==3.25.0
# via -r requirements.in
configobj==5.0.6
# via everett
coverage==6.3.1
# via -r requirements.in
coverage[toml]==6.3.1
# via
# -r requirements.in
# pytest-cov
cryptography==36.0.1
# via
# pyopenssl
@ -257,6 +259,10 @@ pyparsing==3.0.7
pyrsistent==0.18.1
# via jsonschema
pytest==7.0.0
# via
# -r requirements.in
# pytest-cov
pytest-cov==3.0.0
# via -r requirements.in
python-dateutil==2.8.2
# via
@ -378,6 +384,7 @@ tokenizers==0.11.4
tomli==2.0.0
# via
# black
# coverage
# pytest
tqdm==4.62.3
# via