Skip to content

Commit 3367eab

Browse files
committed
build: improved organization of requirements
1 parent 05b02e1 commit 3367eab

File tree

5 files changed

+22
-12
lines changed

5 files changed

+22
-12
lines changed

.dockerignore

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
1-
Dockerfile
2-
README.md
1+
CODE_OF_CONDUCT.md
2+
CONTRIBUTING.md
3+
GOVERNANCE.md
4+
LICENSE
5+
README.md

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
--workdir /home/Biosimulators_tutorials \
4949
ghcr.io/biosimulators/biosimulators_tutorials:latest \
5050
-c "
51-
pip install nbmake pytest pytest-forked
51+
pip install -r requirements.tests.txt
5252
/bin/bash /xvfb-startup.sh python -m pytest --forked --verbose --nbmake tutorials/
5353
"
5454

Dockerfile

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,9 @@ LABEL \
99
org.opencontainers.image.authors="BioSimulators Team <[email protected]>" \
1010
org.opencontainers.image.vendor="BioSimulators Team"
1111

12-
RUN pip install \
13-
notebook \
14-
jupyterhub \
15-
jupyterlab \
16-
matplotlib \
17-
pyyaml \
18-
requests \
19-
kisao
20-
ENV MPLBACKEND=
12+
COPY requirements.txt /tmp/requirements.txt
13+
RUN pip install -r /tmp/requirements.txt \
14+
&& rm /tmp/requirements.txt
2115

2216
ARG NB_USER=biosimulators
2317
ARG NB_UID=1000

requirements.tests.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
pytest
2+
nbmake
3+
pytest-forked

requirements.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# requirements to run Jupyter server
2+
notebook
3+
jupyterhub
4+
jupyterlab
5+
6+
# requirements for notebooks
7+
kisao
8+
matplotlib
9+
pyyaml
10+
requests

0 commit comments

Comments
 (0)