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

Parallelize Test Workflows #131

Closed
LarsKue opened this issue Feb 20, 2024 · 2 comments
Closed

Parallelize Test Workflows #131

LarsKue opened this issue Feb 20, 2024 · 2 comments
Assignees
Labels
refactoring Some code shall be redesigned unit tests A new set of tests needs to be added.

Comments

@LarsKue
Copy link
Contributor

LarsKue commented Feb 20, 2024

We can parallelize the test workflow in 2 ways:

  1. Over multiple environments (i.e., python versions). This can be done either via parallelization directly in the github workflow, or we can tell tox to parallelize environments.
  2. Over multiple tests with pytest-xdist using the flag -n auto.

Drawbacks:

  • Parallelizing the tests changes the console output for the test workflow, since intermediate results cannot be shown until all tests have completed.
@LarsKue LarsKue added refactoring Some code shall be redesigned unit tests A new set of tests needs to be added. labels Feb 20, 2024
@LarsKue LarsKue self-assigned this Feb 20, 2024
LarsKue added a commit that referenced this issue Feb 20, 2024
LarsKue added a commit that referenced this issue Feb 20, 2024
Addresses #131

Amend: Fix dependencies
@LarsKue
Copy link
Contributor Author

LarsKue commented Feb 20, 2024

Done! Tests now run in approximately 8 instead of 18 minutes 🥳

@LarsKue LarsKue closed this as completed Feb 20, 2024
@stefanradev93
Copy link
Contributor

That's awesome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactoring Some code shall be redesigned unit tests A new set of tests needs to be added.
Projects
None yet
Development

No branches or pull requests

2 participants