Skip to content

mlesniew/pytest-gitlabci-parallelized

Repository files navigation

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.

About

Parallelize pytest across GitLab CI workers.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages