From efff066ba6649ec7bdc2459ee1f2daa325571eee Mon Sep 17 00:00:00 2001 From: Sivanantham Chinnaiyan Date: Thu, 15 Feb 2024 14:18:50 +0530 Subject: [PATCH] Increase pytest workers to 6 for python tests Signed-off-by: Sivanantham Chinnaiyan --- .github/workflows/python-test.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/python-test.yml b/.github/workflows/python-test.yml index e80b431bf55..c6982f78a26 100644 --- a/.github/workflows/python-test.yml +++ b/.github/workflows/python-test.yml @@ -88,7 +88,7 @@ jobs: run: | cd python source kserve/.venv/bin/activate - pytest --cov=kserve ./kserve + pytest --cov=kserve -n 6 ./kserve # ----------------------------------------Sklearn Server Unit Tests------------------------------------------------ # load cached sklearn venv if cache exists @@ -112,7 +112,7 @@ jobs: run: | cd python source sklearnserver/.venv/bin/activate - pytest --cov=sklearnserver ./sklearnserver + pytest --cov=sklearnserver -n 6 ./sklearnserver # ----------------------------------------Xgb Server Unit Tests------------------------------------------------ # load cached xgb venv if cache exists @@ -136,7 +136,7 @@ jobs: run: | cd python source xgbserver/.venv/bin/activate - pytest --cov=xgbserver ./xgbserver + pytest --cov=xgbserver -n 6 ./xgbserver # ----------------------------------------Pmml Server Unit Tests------------------------------------------------ # load cached pmml venv if cache exists @@ -160,7 +160,7 @@ jobs: run: | cd python source pmmlserver/.venv/bin/activate - pytest --cov=pmmlserver ./pmmlserver + pytest --cov=pmmlserver -n 6 ./pmmlserver # ----------------------------------------Lgb Server Unit Tests------------------------------------------------ # load cached lgb venv if cache exists @@ -184,7 +184,7 @@ jobs: run: | cd python source lgbserver/.venv/bin/activate - pytest --cov=lgbserver ./lgbserver + pytest --cov=lgbserver -n 6 ./lgbserver # ----------------------------------------Paddle Server Unit Tests------------------------------------------------ # load cached paddle venv if cache exists @@ -209,7 +209,7 @@ jobs: run: | cd python source paddleserver/.venv/bin/activate - pytest --cov=paddleserver ./paddleserver + pytest --cov=paddleserver -n 6 ./paddleserver # ----------------------------------------Alibi Explainer Unit Tests------------------------------------------------ # load cached alibi venv if cache exists @@ -232,7 +232,7 @@ jobs: run: | cd python source alibiexplainer/.venv/bin/activate - pytest --cov=alibiexplainer ./alibiexplainer + pytest --cov=alibiexplainer -n 6 ./alibiexplainer # ----------------------------------------Huggingface Server Unit Tests------------------------------------------------ # load cached huggingface venv if cache exists @@ -266,7 +266,7 @@ jobs: if: ${{ !startsWith(steps.setup-python.outputs.python-version, '3.8') }} run: | cd python/huggingfaceserver - poetry run -- pytest --cov=huggingfaceserver + poetry run -- pytest --cov=huggingfaceserver -n 6 - name: Free space after tests run: |