Closed hakonhagland closed 1 year ago
Hmm,
I've never had that one happen to me before, and I can't see anything obvious that would cause it in your workflow.
Do you possibly have any repo or organization concurrency limits that you might have hit?
Did you try rerunning it a couple times with the same result?
oh sorry, I see why... it's cause your xvfb step failed in a different job:
/Users/runner/work/_temp/14737532-b625-430f-97c4-df84e3f36875.sh: line 1: /sbin/start-stop-daemon: No such file or directory
and because you don't have your matrix set to fail-fast: false
... so github canceled your ubuntu job because your mac job failed (on a later step). It doesn't have anything to do with setup-qt-libs.
You might consider trying aganders/headless-gui in conjunction with this action (which will handle xvfb for you)
- uses: tlambert03/setup-qt-libs@v1
# ...
- uses: aganders3/headless-gui@v1
with:
run: pytest
closing this as it's not actionable here, but feel free to ask for more help
it's cause your xvfb step failed in a different job
@tlambert03 Thanks for helping me out! I did not realize that the message "The operation was canceled" was due to the fail-fast strategy and a different job failing.
You might consider trying aganders/headless-gui in conjunction with this action
Yes that works perfectly! Thanks for the tip!
I also found that I may not have to use xvfb to run the tests with github action, it seems it is enough to set the environment variable QT_QPA_PLATFORM
to "offscreen".
Yep that will work for many things as well! I think you may find a couple things that need xvfb, but I can't remember them at the moment :)
Hi I am trying to use this action with pytestqt, but I get the error "Error: The operation was canceled" when the action is run. Here is a minimal example: https://github.com/hakonhagland/pytest-xvfb-test/tree/xvfb2. Here is a link to the workflow I use: https://github.com/hakonhagland/pytest-xvfb-test/blob/xvfb2/.github/workflows/ci.yml, and here is a link to the github action build log: https://github.com/hakonhagland/pytest-xvfb-test/actions/runs/5630867835/job/15257250882.