Skip to content

Commit

Permalink
fix issues with QT_QPA_PLATFORM
Browse files Browse the repository at this point in the history
  • Loading branch information
gilesknap committed Feb 11, 2024
1 parent 09b2cf3 commit a10d6a2
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 39 deletions.
36 changes: 0 additions & 36 deletions .devcontainer/Dockerfile

This file was deleted.

2 changes: 2 additions & 0 deletions .github/workflows/_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ 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:
run:
Expand Down
2 changes: 0 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
RUN python -m venv /venv
ENV PATH=/venv/bin:$PATH

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

# The build stage installs the context into the venv
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ dev = [
]

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

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

0 comments on commit a10d6a2

Please sign in to comment.