tests: run tests in parallel in CI workflows

This commit is contained in:
Éloi Rivard 2025-01-02 23:54:10 +01:00
parent 7bc3c05cdd
commit 7c89befdd4
No known key found for this signature in database
GPG key ID: 7EDA204EA57DD184
2 changed files with 5 additions and 5 deletions

View file

@ -42,7 +42,7 @@ jobs:
ulimit -n 1024 ulimit -n 1024
export TZ=UTC export TZ=UTC
uv sync --all-extras uv sync --all-extras
uv run pytest --showlocals uv run pytest --numprocesses auto
minversions: minversions:
name: minimum dependency versions name: minimum dependency versions
@ -68,7 +68,7 @@ jobs:
ulimit -n 1024 ulimit -n 1024
export TZ=UTC export TZ=UTC
uv sync --all-extras --resolution=lowest-direct uv sync --all-extras --resolution=lowest-direct
uv run pytest --showlocals uv run pytest --numprocesses auto
style: style:
runs-on: ubuntu-latest runs-on: ubuntu-latest

View file

@ -41,7 +41,7 @@ coverage:
script: script:
- uv sync --all-extras - uv sync --all-extras
- uv pip install coveralls pyyaml tomli - 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 run coveralls
- uv cache prune --ci - uv cache prune --ci
@ -54,7 +54,7 @@ tests:
stage: test stage: test
script: script:
- uv sync --all-extras - uv sync --all-extras
- uv run pytest - uv run pytest --numprocesses auto
- uv cache prune --ci - uv cache prune --ci
minversions: minversions:
@ -65,7 +65,7 @@ minversions:
stage: test stage: test
script: script:
- uv sync --all-extras --resolution=lowest-direct - uv sync --all-extras --resolution=lowest-direct
- uv run pytest - uv run pytest --numprocesses auto
- uv cache prune --ci - uv cache prune --ci
doc: doc: