Skip to content

Commit

Permalink
Increase pytest workers to 6 for python tests
Browse files Browse the repository at this point in the history
Signed-off-by: Sivanantham Chinnaiyan <[email protected]>
  • Loading branch information
sivanantha321 committed Feb 15, 2024
1 parent aef5ed0 commit efff066
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/python-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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: |
Expand Down

0 comments on commit efff066

Please sign in to comment.