From 7d8a84860f29f4363ba6839dabf3916ea67a259a Mon Sep 17 00:00:00 2001 From: Erik Sundell Date: Sun, 25 Feb 2024 17:14:52 +0100 Subject: [PATCH] tests: show mamba list for the user environment before/after upgrade This can help us check if a package has been installed from PyPI via pip, or from conda-forge or other channel via conda/mamba. --- .github/integration-test.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/integration-test.py b/.github/integration-test.py index fcb8768..73ef8ba 100755 --- a/.github/integration-test.py +++ b/.github/integration-test.py @@ -167,15 +167,23 @@ def run_test( command = f"python3 /srv/src/bootstrap/bootstrap.py --version={upgrade_from}" run_command(container_name, command) + # show user environment + command = "/opt/tljh/user/bin/mamba list" + run_command(container_name, command) + command = f"python3 /srv/src/bootstrap/bootstrap.py {' '.join(installer_args)}" run_command(container_name, command) + # show user environment (again if upgrade) + command = "/opt/tljh/user/bin/mamba list" + run_command(container_name, command) + # Install pkgs from requirements in hub's pip, where # the bootstrap script installed the others command = "/opt/tljh/hub/bin/python3 -m pip install -r /srv/src/integration-tests/requirements.txt" run_command(container_name, command) - # show environment + # show hub environment command = "/opt/tljh/hub/bin/python3 -m pip freeze" run_command(container_name, command)