I have a Tkinter program that I want to run in a workflow to test it, but the workflow gets stuck in an infinite loop without any response, and I have to manually cancel the pipeline. Do you know how to resolve this?
.yml file:
<code>- name: Display
run: |
export DISPLAY=:99
Xvfb :99 &
sleep 3
- name: Run Python
run: |
export DISPLAY=:99
python main.py
</code>
<code>- name: Display
run: |
export DISPLAY=:99
Xvfb :99 &
sleep 3
- name: Run Python
run: |
export DISPLAY=:99
python main.py
</code>
- name: Display
run: |
export DISPLAY=:99
Xvfb :99 &
sleep 3
- name: Run Python
run: |
export DISPLAY=:99
python main.py
Stucked in workflow:
<code>Run export DISPLAY=:99
export DISPLAY=:99
Xvfb :99 &
sleep 3
shell: /usr/bin/bash -e {0}
</code>
<code>Run export DISPLAY=:99
export DISPLAY=:99
Xvfb :99 &
sleep 3
shell: /usr/bin/bash -e {0}
</code>
Run export DISPLAY=:99
export DISPLAY=:99
Xvfb :99 &
sleep 3
shell: /usr/bin/bash -e {0}
I tried separating it into individual tests, but that didn’t help either. The problem persists.