-
-
Notifications
You must be signed in to change notification settings - Fork 70
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
Comments
Hi @hakonhagland, 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! |
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! |
Hello! Thanks for all the demos and examples. Running the documentation's Github Action didn't work for me:
Following @Tasty213 example I was able to get it running by just copying his example run. Looks like running https://github.com/tlambert03/setup-qt-libs instals |
I don't follow regarding
and
as both are already mentioned in the docs? |
@The-Compiler your are right, |
Hi, should we add some up-to-date information in the docs about how to use this module from GitHub actions with
xvfb
orQT_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:
QT_QPA_PLATFORM=offscreen
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.
The text was updated successfully, but these errors were encountered: