Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setup for github actions on linux, macos, and windows #510

Open
hakonhagland opened this issue Jul 22, 2023 · 3 comments
Open

Setup for github actions on linux, macos, and windows #510

hakonhagland opened this issue Jul 22, 2023 · 3 comments

Comments

@hakonhagland
Copy link
Contributor

Hi, should we add some up-to-date information in the docs about how to use this module from GitHub actions with xvfb or QT_QPA_PLATFORM=offscreen ? It might be useful for newcomers. I have created two minimal examples. The first example tested the following combination:

here: https://github.com/hakonhagland/pytest-xvfb-test/tree/xvfb3, github actions logs: https://github.com/hakonhagland/pytest-xvfb-test/actions/runs/5632618698, and works fine. The second test uses the following combination:

it also seems to work fine: source: https://github.com/hakonhagland/pytest-xvfb-test/tree/offscreen, github actions logs: https://github.com/hakonhagland/pytest-xvfb-test/actions/runs/5632807241

I tried some of the advice in the docs: https://pytest-qt.readthedocs.io/en/latest/troubleshooting.html but was unsuccessful to get the correct combination. Then I found the actions https://github.com/tlambert03/setup-qt-libs (also mentioned in the docs) and https://github.com/aganders3/headless-gui which worked fine.

@nicoddemus
Copy link
Member

Hi @hakonhagland,

Indeed some updated docs would be a great contribution!

@hakonhagland
Copy link
Contributor Author

Indeed some updated docs would be a great contribution!

Hi @nicoddemus, yes! I am going on a summer holiday now, but will have a look at this when I come back!

@Tasty213
Copy link

Tasty213 commented May 7, 2024

Hi, many thanks, @hakonhagland, for the demo links. I finally got my CI to work with pytest-qt. It would be great if this were in the docs!

Example run
Current setup

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants