Skip to content

Commit 99f62a7

Browse files
authored
Merge pull request #465 from Integration-Automation/fix/release-wheel-smoke
Give the release smoke test a display and the installed wheel
2 parents 5f51f6c + 0309a6c commit 99f62a7

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,17 @@ jobs:
3535
- run: python -m twine check dist/*
3636
- name: Smoke-test the built wheel
3737
run: |
38+
# The X11 backend opens a display at import time, so the runner
39+
# needs a virtual one. Import from outside the checkout as well:
40+
# the repo root shadows site-packages on sys.path, so running this
41+
# here would test the source tree instead of the built wheel.
42+
sudo apt-get update && sudo apt-get install -y xvfb
3843
python -m venv /tmp/wheel-test
3944
/tmp/wheel-test/bin/pip install dist/*.whl
40-
/tmp/wheel-test/bin/python -c "import je_auto_control.api"
45+
cd /tmp && xvfb-run -a /tmp/wheel-test/bin/python -c "
46+
import je_auto_control, je_auto_control.api
47+
print('imported', je_auto_control.__file__)
48+
"
4149
- uses: actions/attest-build-provenance@v2
4250
with:
4351
subject-path: "dist/*"

0 commit comments

Comments
 (0)