Skip to content

Commit 7d8a848

Browse files
committed
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.
1 parent 2fe9912 commit 7d8a848

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/integration-test.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,15 +167,23 @@ def run_test(
167167
command = f"python3 /srv/src/bootstrap/bootstrap.py --version={upgrade_from}"
168168
run_command(container_name, command)
169169

170+
# show user environment
171+
command = "/opt/tljh/user/bin/mamba list"
172+
run_command(container_name, command)
173+
170174
command = f"python3 /srv/src/bootstrap/bootstrap.py {' '.join(installer_args)}"
171175
run_command(container_name, command)
172176

177+
# show user environment (again if upgrade)
178+
command = "/opt/tljh/user/bin/mamba list"
179+
run_command(container_name, command)
180+
173181
# Install pkgs from requirements in hub's pip, where
174182
# the bootstrap script installed the others
175183
command = "/opt/tljh/hub/bin/python3 -m pip install -r /srv/src/integration-tests/requirements.txt"
176184
run_command(container_name, command)
177185

178-
# show environment
186+
# show hub environment
179187
command = "/opt/tljh/hub/bin/python3 -m pip freeze"
180188
run_command(container_name, command)
181189

0 commit comments

Comments
 (0)