Skip to content

Commit 3b83205

Browse files
committed
fix/powershell
1 parent 6d217b8 commit 3b83205

4 files changed

Lines changed: 7 additions & 9 deletions

File tree

docker-compose.test.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff 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"]

service/Dockerfile.test

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ARG DEBIAN_FRONTEND=noninteractive
77

88
# Python dependencies
99
WORKDIR /root
10-
COPY requirements.txt requirements.test.txt ./
10+
COPY requirements.txt requirements.test.txt pytest.ini pyproject.toml ./
1111
RUN python -m pip install --upgrade pip setuptools wheel
1212
RUN pip install --no-cache-dir -r requirements.txt -r requirements.test.txt
1313

@@ -21,9 +21,6 @@ ARG HOST_GROUPNAME=group
2121
RUN 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
2825
USER $HOST_USERNAME
2926

service/app/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
def run():
44
print("Hello World!")
55

6-
if __name__ == "__main__":
7-
run()
6+
if __name__ == "__main__": # pragma: no cover
7+
run() # pragma: no cover

service/app/pytest.ini

Whitespace-only changes.

0 commit comments

Comments
 (0)