Use requirement installation script in circleci installations to have single requirements list.

This commit is contained in:
Ömer Faruk Özdemir 2022-02-04 15:23:11 +03:00
parent 5fdd721834
commit 709c93ee03
3 changed files with 11 additions and 5 deletions

View File

@ -16,10 +16,7 @@ jobs:
command: |
python3 -m venv venv
. venv/bin/activate
pip install --upgrade pip
pip install -r gradio.egg-info/requires.txt
pip install shap IPython comet_ml wandb mlflow tensorflow transformers huggingface_hub
pip install selenium==4.0.0a6.post2 coverage scikit-image
bash scripts/install_test_requirements.sh
- run:
command: |
chromedriver --version

View File

@ -0,0 +1,8 @@
#!/bin/bash
if [ -z "$(ls | grep CONTRIBUTING.md)" ]; then
echo "Please run the script from repo directory"
exit -1
else
echo "Running the tests"
python -m pytest --durations=0 test
fi

View File

@ -8,4 +8,5 @@ selenium==4.0.0a6.post2
scikit-image
shap
pytest
wandb
wandb
huggingface_hub