Skip to content

Commit a10d6a2

Browse files
committed
fix issues with QT_QPA_PLATFORM
1 parent 09b2cf3 commit a10d6a2

File tree

4 files changed

+3
-39
lines changed

4 files changed

+3
-39
lines changed

.devcontainer/Dockerfile

Lines changed: 0 additions & 36 deletions
This file was deleted.

.github/workflows/_test.yml

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

2022
jobs:
2123
run:

Dockerfile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
1313
RUN python -m venv /venv
1414
ENV PATH=/venv/bin:$PATH
1515

16-
# allow tests to run headless in the dev container
17-
ENV QT_QPA_PLATFORM=offscreen
1816
ENV XDG_RUNTIME_DIR=/tmp/runtime-vscode
1917

2018
# The build stage installs the context into the venv

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ dev = [
4040
]
4141

4242
[project.scripts]
43-
dls-pmac-control = "dls_pmac_control.motor:main"
43+
dls-pmac-control = "dls_pmac_control.__main__:main"
4444

4545
[project.urls]
4646
GitHub = "https://github.com/DiamondLightSource/dls-pmac-control"

0 commit comments

Comments
 (0)