test #23
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test GUI | |
on: | |
push: | |
pull_request: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 6 * * 1' | |
jobs: | |
test-gui: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python 3.9 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.9 | |
- name: Install uxsim and dependencies | |
run: pip install . | |
- name: Install dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y xvfb | |
python -m pip install --upgrade pip | |
pip install pyqt5 pytest setuptools pytest-qt | |
- name: Start Xvfb | |
run: | | |
Xvfb :99 & # Launch virtual display server | |
export DISPLAY=:99 | |
- name: Run GUI test | |
run: | | |
xvfb-run pytest tests/test_result_gui_viewer.py --durations=0 -v |