@@ -32,19 +32,17 @@ jobs:
3232 env :
3333 USE_VIRTUAL_PYTHON_ENVIRONMENT_VENV : " true"
3434 # 1. Run the script under test to create, activate and install the virtual environment
35- # 2. Start with an overall check with pip
36- # 3. Run pip in dry-mode with full output first to get all infos and fail on missing packages.
37- # 4a. The leading exclamation mark tells the shell to invert the returned exit code.
35+ # 2. Run pip install for the current environment in dry-mode with full output first to get all infos and fail on missing packages.
36+ # 3a. The leading exclamation mark tells the shell to invert the returned exit code.
3837 # Failing because "Would install" is missing leads to a successful execution.
39- # 5b. Run pip in dry-run mode without installing or resolving dependencies
40- # 5c. Suppress all pip output (stderr)
41- # 5d. Check if pip *would install* anything using grep
42- # 5e. If there are missing dependencies and the environment is incomplete, fail with code 1 (indicates all requirements already satisfied)
38+ # 3b. Run pip install for the current environment in dry-run mode without installing or resolving dependencies
39+ # 3c. Suppress all pip output (stderr)
40+ # 3d. Check if pip would install anything using grep
41+ # 3e. If there are missing dependencies and the environment is incomplete,
42+ # fail with code 1 (indicates all requirements already satisfied)
4343 #
4444 # Output installed dependencies for troubleshooting purposes:.venv/bin/pip freeze
45- # TODO remove:
46- # pip install --dry-run --ignore-installed --requirement "./requirements.txt"
47- # ! pip install --dry-run --no-deps --no-cache-dir --no-index --requirement "./requirements.txt" 2>/dev/null | grep -q "Would install"
4845 run : |
4946 source ./scripts/activatePythonEnvironment.sh
50- .venv/bin/pip install --dry-run --requirement requirements.txt
47+ .venv/bin/pip install --dry-run --requirement requirements.txt
48+ ! .venv/bin/pip install --dry-run --requirement requirements.txt 2>/dev/null | grep -q "Would install"
0 commit comments