File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ services:
66 environment :
77 - JUPYTER_PLATFORM_DIRS=1
88 - COVERAGE_FILE=/tmp/.coverage
9+ - PYTHONPATH=/
910 ports :
1011 - 8888:8888
1112 user : " 0:0"
@@ -14,8 +15,8 @@ services:
1415 image : local/service-test:ci
1516 volumes :
1617 - ./service/app:/app
17- - ./service/root/jupyter:/root/.jupyter
18- - ./service/reports:/reports
19- - ./service/pytest.ini:/app/pytest.ini:ro
2018 - ./service/data:/data
19+ - ./service/tests:/tests
20+ - ./service/reports:/reports
21+ - ./service/root/jupyter:/root/.jupyter
2122 command : ["pytest", "-q"]
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ ARG DEBIAN_FRONTEND=noninteractive
77
88# Python dependencies
99WORKDIR /root
10- COPY requirements.txt requirements.test.txt ./
10+ COPY requirements.txt requirements.test.txt pytest.ini pyproject.toml ./
1111RUN python -m pip install --upgrade pip setuptools wheel
1212RUN pip install --no-cache-dir -r requirements.txt -r requirements.test.txt
1313
@@ -21,9 +21,6 @@ ARG HOST_GROUPNAME=group
2121RUN groupadd -g $HOST_GID $HOST_GROUPNAME && \
2222 useradd -m -s /bin/bash -u $HOST_UID -g $HOST_GID $HOST_USERNAME
2323
24- # App workspace
25- WORKDIR /app
26-
2724# User
2825USER $HOST_USERNAME
2926
Original file line number Diff line number Diff line change 33def run ():
44 print ("Hello World!" )
55
6- if __name__ == "__main__" :
7- run ()
6+ if __name__ == "__main__" : # pragma: no cover
7+ run () # pragma: no cover
You can’t perform that action at this time.
0 commit comments