Skip to content

Commit

Permalink
add QT_QPA_PLATFORM to tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gilesknap committed Feb 12, 2024
1 parent a10d6a2 commit 11d8ae2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 0 additions & 1 deletion .github/workflows/_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ on:
env:
# https://github.com/pytest-dev/pytest/issues/2042
PY_IGNORE_IMPORTMISMATCH: "1"
# allow tests to run headless
ENV QT_QPA_PLATFORM: offscreen

jobs:
Expand Down
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
# The devcontainer should use the developer target and run as root with podman
# or docker with user namespaces.
ARG PYTHON_VERSION=3.11
FROM python:${PYTHON_VERSION} as developer
FROM python:${PYTHON_VERSION} as system

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

FROM system as developer

# Set up a virtual environment and put it in PATH
RUN python -m venv /venv
ENV PATH=/venv/bin:$PATH
Expand Down

0 comments on commit 11d8ae2

Please sign in to comment.