diff --git a/.github/workflows/guitest.yml b/.github/workflows/guitest.yml index b382984548c..2d541c3b49c 100644 --- a/.github/workflows/guitest.yml +++ b/.github/workflows/guitest.yml @@ -14,7 +14,7 @@ on: required: false enable-profiling: - default: true + default: false type: boolean required: false @@ -25,10 +25,14 @@ jobs: fail-fast: false matrix: ${{fromJson(inputs.matrix)}} + defaults: + run: + shell: bash + timeout-minutes: 10 env: - PYTEST_ARGUMENTS: ./src/tribler/gui --guitests -v --randomly-seed=1 --exitfirst --disable-warnings + PYTEST_ARGUMENTS: ./src/tribler/gui --guitests --randomly-seed=1 --exitfirst --disable-warnings steps: - uses: actions/checkout@v3 @@ -43,12 +47,18 @@ jobs: if: runner.os == 'Windows' uses: ./.github/actions/windows_dependencies +# - name: Install Qt (Win) +# if: runner.os == 'Windows' +# uses: jurplel/install-qt-action@v3 +# with: +# version: 5.15.1 + - name: Install dependencies (Linux) if: runner.os == 'Linux' run: | sudo apt install pyqt5-dev-tools - - name: Setup headless display + - name: Setup headless display (Linux) if: runner.os == 'Linux' uses: pyvista/setup-headless-display-action@v1 diff --git a/src/tribler/gui/tests/conftest.py b/src/tribler/gui/tests/conftest.py index 538dd70d242..076231ce4e7 100644 --- a/src/tribler/gui/tests/conftest.py +++ b/src/tribler/gui/tests/conftest.py @@ -8,7 +8,7 @@ def pytest_addoption(parser): def pytest_collection_modifyitems(config, items): for item in items: - item.add_marker(pytest.mark.timeout(30)) + item.add_marker(pytest.mark.timeout(60)) if config.getoption("--guitests"): # --guitests given in cli: do not skip GUI tests diff --git a/src/tribler/gui/tests/test_gui.py b/src/tribler/gui/tests/test_gui.py index 9750792c192..ad057b8b787 100644 --- a/src/tribler/gui/tests/test_gui.py +++ b/src/tribler/gui/tests/test_gui.py @@ -426,7 +426,7 @@ def test_add_download_url(window): wait_for_signal(window.downloads_page.received_downloads) -# @pytest.mark.guitest +@pytest.mark.guitest def test_add_deeptorrent(window): # Test that the `deeptorrent.torrent` file doesn't cause the RecursionError #