Skip to content

Commit 9933209

Browse files
committed
Undo verbose additions, move conda list to Dockerfile
1 parent cd0de1b commit 9933209

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ USER ${NB_USER}
77
ADD environment.yml environment.yml
88

99
RUN conda env update --prefix /srv/conda/envs/notebook --file environment.yml
10+
RUN conda list
1011

1112
COPY --chown=${NB_USER}:${NB_USER} image-tests /srv/repo/image-tests
1213
COPY --chown=${NB_USER}:${NB_USER} scripts /srv/repo/scripts

scripts/run_tests.sh

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
export PYTEST_FLAGS="";
22

3-
# first inspect what all is in the image
4-
echo "Output of mamba list in the image..."
5-
mamba list
6-
73
# If there is a requirements.txt file inside image-tests, install it.
84
# Useful if you want to install a bunch of pytest packages.
95
[ -f /srv/repo/image-tests/requirements.txt ] && \
@@ -13,7 +9,7 @@ mamba list
139
# If pytest is not already installed in the image, install it.
1410
which py.test > /dev/null || \
1511
echo "Installing pytest inside the image..." && \
16-
python3 -m pip install --no-cache "pytest<9";
12+
python3 -m pip install --no-cache "pytest<9" > /dev/null;
1713

1814
# If there are any .ipynb files in image-tests, install pytest-notebook
1915
# if necessary, and set PYTEST_FLAGS so notebook tests are run.

0 commit comments

Comments
 (0)