Skip to content

Commit 11d8ae2

Browse files
committed
add QT_QPA_PLATFORM to tests
1 parent a10d6a2 commit 11d8ae2

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.github/workflows/_test.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ on:
1616
env:
1717
# https://github.com/pytest-dev/pytest/issues/2042
1818
PY_IGNORE_IMPORTMISMATCH: "1"
19-
# allow tests to run headless
2019
ENV QT_QPA_PLATFORM: offscreen
2120

2221
jobs:

Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
# The devcontainer should use the developer target and run as root with podman
22
# or docker with user namespaces.
33
ARG PYTHON_VERSION=3.11
4-
FROM python:${PYTHON_VERSION} as developer
4+
FROM python:${PYTHON_VERSION} as system
55

6-
# Add any system dependencies for the developer/build environment here
6+
# Add any system dependencies for developer and runtime targets
77
RUN apt-get update && apt-get install -y --no-install-recommends \
88
graphviz \
99
libqt5gui5 libxcb-xinerama0 \
1010
&& rm -rf /var/lib/apt/lists/*
1111

12+
FROM system as developer
13+
1214
# Set up a virtual environment and put it in PATH
1315
RUN python -m venv /venv
1416
ENV PATH=/venv/bin:$PATH

0 commit comments

Comments
 (0)