Skip to content

Commit ab00081

Browse files
committed
Enable parallel test execution and add test dependencies
Updated the test workflow to run pytest with automatic parallelization using pytest-xdist. Added pytest-xdist, pytest-subtests, and pytest-benchmark to the test dependencies in pyproject.toml to support parallel testing, subtests, and benchmarking.
1 parent d79a21e commit ab00081

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.github/workflows/tests.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959
- name: Run Tests
6060
run: |
6161
source .venv/bin/activate
62-
pytest -s -v --cov=./ --cov-report=xml --cov=aurora
62+
pytest -s -v --cov=./ --cov-report=xml --cov=aurora -n auto tests
6363
# pytest -s -v tests/synthetic/test_fourier_coefficients.py
6464
# pytest -s -v tests/config/test_config_creator.py
6565

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ addopts = ["--import-mode=importlib"]
5151
test = [
5252
"pytest>=3",
5353
"pytest-runner",
54+
"pytest-xdist",
55+
"pytest-subtests",
56+
"pytest-benchmark",
5457
]
5558
dev = [
5659
"black",

0 commit comments

Comments
 (0)