File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -128,5 +128,6 @@ jobs:
128128 -e _PAPERSCOUT_TESTING=1 \
129129 -e SLACK_BOT_TOKEN=xoxb-ci-placeholder \
130130 -e SLACK_SIGNING_SECRET=ci-placeholder-secret \
131+ -e COVERAGE_FILE=/tmp/.coverage \
131132 paperscout:ci \
132133 -m pytest tests/ -q --cov=paperscout --cov-fail-under=90
Original file line number Diff line number Diff line change @@ -77,6 +77,7 @@ docker run --rm --entrypoint python \
7777 -e _PAPERSCOUT_TESTING=1 \
7878 -e SLACK_BOT_TOKEN=xoxb-test \
7979 -e SLACK_SIGNING_SECRET=test-secret \
80+ -e COVERAGE_FILE=/tmp/.coverage \
8081 paperscout:test \
8182 -m pytest tests/ -q --cov=paperscout --cov-fail-under=90
8283```
Original file line number Diff line number Diff line change @@ -50,8 +50,11 @@ FROM runtime AS test
5050USER root
5151COPY --from=test-builder /build/.venv /app/.venv
5252COPY --from=test-builder /build/tests /app/tests
53- RUN chown -R paperscout:paperscout /app/.venv /app/tests
53+ # pytest / coverage read [tool.pytest] and [tool.coverage] from pyproject.toml
54+ COPY --from=test-builder /build/pyproject.toml /app/pyproject.toml
55+ RUN chown -R paperscout:paperscout /app
5456USER paperscout
57+ ENV COVERAGE_FILE=/tmp/.coverage
5558# CI runs pytest via `docker run … python -m pytest`; do not inherit paperscout ENTRYPOINT.
5659ENTRYPOINT []
5760
You can’t perform that action at this time.
0 commit comments