From cdcd7ba3b7ec282e351d14ec1f0ac01af80791bc Mon Sep 17 00:00:00 2001 From: Riad Elimemmedov Date: Sat, 23 Mar 2024 20:46:57 +0400 Subject: [PATCH] Added paralel test implementation --- .github/workflows/backend.yml | 4 ++-- commands.md | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/backend.yml b/.github/workflows/backend.yml index 35773ff..f5c1f11 100644 --- a/.github/workflows/backend.yml +++ b/.github/workflows/backend.yml @@ -54,8 +54,8 @@ jobs: run: | python -m poetry install - - name: Run tests - run: poetry run pytest -s + - name: Run tests paralel + run: poetry run pytest -n auto - name: Run tests with pytest run: poetry run pytest --cov=./ --cov-report=xml diff --git a/commands.md b/commands.md index 181340c..f8db60b 100644 --- a/commands.md +++ b/commands.md @@ -33,6 +33,8 @@ Backend - `poetry run pytest -k` - Run tests until failure: - `poetry run pytest -x` +- Run tests paralel: + - `poetry run pytest -n auto` - Format code using Black: - `poetry run black .` - Generate html for covering tests: