Skip to content

Commit

Permalink
Fix win GUI tests
Browse files Browse the repository at this point in the history
  • Loading branch information
drew2a committed Nov 3, 2022
1 parent b9116d1 commit 3504723
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
16 changes: 13 additions & 3 deletions .github/workflows/guitest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on:
required: false

enable-profiling:
default: true
default: false
type: boolean
required: false

Expand All @@ -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
Expand All @@ -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

Expand Down
2 changes: 1 addition & 1 deletion src/tribler/gui/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/tribler/gui/tests/test_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
#
Expand Down

0 comments on commit 3504723

Please sign in to comment.