From d9d58d5b12f234bae74600de5d6747123c4f2870 Mon Sep 17 00:00:00 2001 From: Henrique Gemignani Passos Lima Date: Sat, 12 Oct 2024 02:08:59 +0300 Subject: [PATCH] Multiple threads for CI --- .github/workflows/python.yml | 2 +- pyproject.toml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index 5ac9aba..ec3f501 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -105,7 +105,7 @@ jobs: - name: Run Tests run: - venv/bin/python -m pytest --cov src --cov-report=xml --durations=100 + venv/bin/python -m pytest --cov src --cov-report=xml --durations=100 -n 4 - name: codecov uses: codecov/codecov-action@v4 diff --git a/pyproject.toml b/pyproject.toml index ed04445..8c8da05 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -37,6 +37,7 @@ test = [ "pytest", "pytest-cov", "pytest-mock", + "pytest-xdist", "pre-commit", ]