Skip to content

Commit ca1698f

Browse files
committed
Run unitests.
1 parent 2c50fe2 commit ca1698f

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

docker/Dockerfile.python_wheels

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,11 @@ COPY --exclude=.git --exclude=.github --exclude=docker --exclude=dist \
2121
RUN ${PYTHON_CMD} -m build --wheel
2222
RUN auditwheel repair dist/*.whl --wheel-dir dist_out
2323

24+
FROM build AS test
25+
RUN ${PYTHON_CMD} -m pip install dist_out/*.whl
26+
RUN ${PYTHON_CMD} -m unittest discover -v -s tests -p '*.py'
27+
RUN date > dist_out/test_done.ts
28+
2429
FROM scratch AS export
2530
COPY --from=build /src/dist_out /dist
31+
COPY --from=test /src/dist_out/test_done.ts /dist

0 commit comments

Comments
 (0)