mirror of
https://github.com/gradio-app/gradio.git
synced 2025-04-12 12:40:29 +08:00
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:
parent
a502c94a99
commit
91d09b15ea
@ -40,6 +40,7 @@ jobs:
|
||||
- run:
|
||||
command: |
|
||||
. venv/bin/activate
|
||||
python -m pytest
|
||||
coverage run -m pytest
|
||||
coverage xml
|
||||
- codecov/upload:
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -10,3 +10,4 @@ shap
|
||||
pytest
|
||||
wandb
|
||||
huggingface_hub
|
||||
pytest-cov
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user