Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run tests in parallel with pytest-xdist. #705

Merged
merged 9 commits into from
Mar 7, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .circleci/ci-oldest-reqs.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ packaging==15.0
pandas==1.0.0
pymongo==3.0.0
pytest-cov==2.10.1
pytest-xdist==2.5.0
pytest==6.2.1
tables==3.4.2
tqdm==4.10.0
6 changes: 3 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ jobs:
name: Run tests
command: |
. venv/bin/activate
${PYTHON} -m pytest --cov signac --cov-config=setup.cfg --cov-report=xml tests/ -v
${PYTHON} -m pytest -n 2 --dist loadfile --cov=signac --cov-config=setup.cfg --cov-report=xml tests/ -v
codecov

- store_artifacts:
Expand Down Expand Up @@ -171,7 +171,7 @@ jobs:
- run:
name: Run tests
command: |
${PYTHON} -m pytest --cov=signac --cov-report=xml tests/ -v
${PYTHON} -m pytest -n 2 --dist loadfile --cov=signac --cov-report=xml tests/ -v
codecov

macos-python-3:
Expand All @@ -195,7 +195,7 @@ jobs:
python -m pip install --progress-bar off -U -r requirements/requirements-test.txt
python -m pip install --progress-bar off -U -r requirements/requirements-test-optional.txt
python -m pip install --progress-bar off -U -e .
python -m pytest --cov=signac --cov-report=xml tests/ -v
python -m pytest -n 2 --dist loadfile --cov=signac --cov-report=xml tests/ -v
codecov

check-metadata:
Expand Down
1 change: 1 addition & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ Added

- Official support for Python 3.10 (#631).
- Benchmarks can be run using the ``asv`` (airspeed velocity) tool (#629).
- Continuous integration tests run in parallel with ``pytest-xdist`` (#705).

Changed
+++++++
Expand Down
1 change: 1 addition & 0 deletions requirements/requirements-test.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
coverage==6.3.2
pytest==7.0.1
pytest-cov==3.0.0
pytest-xdist==2.5.0