Parallelize pytest across GitLab CI workers.
Project description
pytest-gitlabci-parallelized
Parallelize pytest across GitLab CI workers.
This pytest plugin is inspired and based on pytest-circleci-parallelized.
Features
Leverage the builtin parallelism of GitLab CI to run your test suites. Call pytest
with the CI_NODE_INDEX
and CI_NODE_TOTAL
environment variables set or use the --ci-node-index
and --ci-node-total
switches to split tests amongst nodes.
Read more about the GitLab CI parallel test splitting here.
# .gitlab-ci.yml
tests:
stage: test
script: pytest
parallel: 5
Installation
You can install "pytest-circleci-parallelized" via pip from PyPI.
pip install pytest-circleci-parallelized
Contributing
Contributors welcome! Tests can be run with pytest
.
License
Distributed under the terms of the MIT license, pytest-gitlabci-parallelized
is free and open source software.
Issues
If you encounter any problems, please file an issue along with a detailed description.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Hashes for pytest-gitlabci-parallelized-0.1.0.linux-x86_64.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 04a58368e41412ac13dd72f684c1a5f12e4fa217793bba780accf542cd6ee8b9 |
|
MD5 | 9deaa3c8a1fb0187e05a5c5c346487f5 |
|
BLAKE2b-256 | 86a6243bdf2104a9fc024addcd40bf9fd5e1213e2d03208b155f0d1e18d07f24 |