Skip to main content

Parallelize pytest across GitLab CI workers.

Project description

pytest-gitlabci-parallelized

PyPI version Python versions

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-gitlabci-parallelized" via pip from PyPI.

pip install pytest-gitlabci-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

pytest-gitlabci-parallelized-0.1.4.tar.gz (3.9 kB view details)

Uploaded Source

File details

Details for the file pytest-gitlabci-parallelized-0.1.4.tar.gz.

File metadata

File hashes

Hashes for pytest-gitlabci-parallelized-0.1.4.tar.gz
Algorithm Hash digest
SHA256 48f5785085b413a39ac37cf895c8a687d6aaf5315a45e13ec57c30ca4c0715c4
MD5 f39a3097a4162ca969408eebd56fd80c
BLAKE2b-256 9c08492dd7b78e0aff9e3aa983ac2ff20c8c623f88d3d17682330bd12eb70470

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page