Skip to content

Commit

Permalink
CI: Add timeout to workflows and restore example.py timer line
Browse files Browse the repository at this point in the history
  • Loading branch information
dalthviz committed Oct 17, 2022
1 parent 679722a commit 2f13033
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/linux-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ on:
jobs:
linux:
name: Linux Py${{ matrix.PYTHON_VERSION }}
timeout-minutes: 15
runs-on: ubuntu-latest
env:
CI: True
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/macos-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ on:
jobs:
macos:
name: Mac Py${{ matrix.PYTHON_VERSION }}
timeout-minutes: 15
runs-on: macos-latest
env:
CI: True
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/windows-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ on:

jobs:
windows:
name: Windows Py${{ matrix.PYTHON_VERSION }}
name: Windows Py${{ matrix.PYTHON_VERSION }}
timeout-minutes: 15
runs-on: windows-latest
env:
CI: True
Expand Down
4 changes: 3 additions & 1 deletion example.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,9 @@ def main():
if hasattr(QtCore.Qt, 'AA_UseHighDpiPixmaps'):
app.setAttribute(QtCore.Qt.AA_UseHighDpiPixmaps)

#QtCore.QTimer.singleShot(10000, app.exit)
# Timer needed to close the example application
# when testing
QtCore.QTimer.singleShot(10000, app.exit)
_ = AwesomeExample()
sys.exit(app.exec_())

Expand Down

0 comments on commit 2f13033

Please sign in to comment.