From 7c89befdd429611f7d30bc7bd55fb91dea38c3c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89loi=20Rivard?= Date: Thu, 2 Jan 2025 23:54:10 +0100 Subject: [PATCH] tests: run tests in parallel in CI workflows --- .github/workflows/tests.yaml | 4 ++-- .gitlab-ci.yml | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 4138d29f..4a070e9f 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -42,7 +42,7 @@ jobs: ulimit -n 1024 export TZ=UTC uv sync --all-extras - uv run pytest --showlocals + uv run pytest --numprocesses auto minversions: name: minimum dependency versions @@ -68,7 +68,7 @@ jobs: ulimit -n 1024 export TZ=UTC uv sync --all-extras --resolution=lowest-direct - uv run pytest --showlocals + uv run pytest --numprocesses auto style: runs-on: ubuntu-latest diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 95bc7153..53f014f2 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -41,7 +41,7 @@ coverage: script: - uv sync --all-extras - uv pip install coveralls pyyaml tomli - - uv run pytest --cov --cov-fail-under=100 --cov-report term:skip-covered -n auto + - uv run pytest --cov --cov-fail-under=100 --cov-report term:skip-covered --numprocesses auto - uv run coveralls - uv cache prune --ci @@ -54,7 +54,7 @@ tests: stage: test script: - uv sync --all-extras - - uv run pytest + - uv run pytest --numprocesses auto - uv cache prune --ci minversions: @@ -65,7 +65,7 @@ minversions: stage: test script: - uv sync --all-extras --resolution=lowest-direct - - uv run pytest + - uv run pytest --numprocesses auto - uv cache prune --ci doc: