-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dev: improve python-run-tests execution
Improves the `python-run-tests` command to create Python-3.8 based virtual environments to use the same version as container images. Updates `pip` before installing each component in order to speed up the dependency resolution for certain cluster components. Allows execution of selected pytests only by passing over `PYTEST_ADDOPTS` environment variable. Switches to using `run-tests.sh` to execute pytests in individual components which takes care of the DB setup at the source. Allows excluding certain Python components such as `-c CLUSTER --exclude-components r-j-controller` on macOS. Example: ``` $ PYTEST_ADDOPTS=tests/test_version.py reana-dev python-unit-tests -c ALL -k ``` Closes #755.
- Loading branch information
1 parent
ebf1ac0
commit 5a06eef
Showing
3 changed files
with
56 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters