Update test-gui.yml #17
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 setuptools | |
- name: Start Xvfb | |
run: | | |
Xvfb :99 & # 仮想ディスプレイサーバーを起動 | |
export DISPLAY=:99 # DISPLAY環境変数の設定 | |
- name: Run GUI test | |
run: | | |
# GUIアプリケーションの起動テストを行うPythonスクリプトを実行 | |
python tests/test_result_gui_viewer.py --durations=0 -v |