From 38c3be77eecce6aea8aba62a856a1152e7784620 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Bel=C3=A1k?= Date: Thu, 12 Oct 2023 16:12:06 +0200 Subject: [PATCH] ci: execute tests in parallel --- .github/workflows/test.yaml | 2 +- pyproject.toml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index e22d689..b8c19e7 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -42,7 +42,7 @@ jobs: poetry install -E all - name: Test python run: | - poetry run python -m pytest --disable-warnings --cov=edvart tests/ + poetry run python -m pytest -n auto --disable-warnings --cov=edvart tests/ - name: Lint run: | poetry run pylint --rcfile=.pylintrc edvart/ diff --git a/pyproject.toml b/pyproject.toml index cb35c05..ad6302e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -46,6 +46,7 @@ black = "^22.3.0" pylint = "^2.14.3" isort = "^5.10.1" sphinx-copybutton = "^0.5.2" +pytest-xdist = "^3.3.1" [build-system] requires = ["poetry_core>=1.0.0"]