From 5b820bc85553fab80e968b06568600eb972f264a Mon Sep 17 00:00:00 2001 From: Erik Sundell Date: Mon, 18 Oct 2021 04:45:33 +0200 Subject: [PATCH] ci: provide a timeout to ensure logs are collected --- .github/workflows/integration-test.yaml | 4 ++++ .github/workflows/unit-test.yaml | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/integration-test.yaml b/.github/workflows/integration-test.yaml index 7f551bd..d686221 100644 --- a/.github/workflows/integration-test.yaml +++ b/.github/workflows/integration-test.yaml @@ -119,6 +119,7 @@ jobs: run: | pytest --verbose --maxfail=2 --color=yes --durations=10 --capture=no \ integration-tests/test_bootstrap.py + timeout-minutes: 15 - name: Run basic tests run: | @@ -129,6 +130,7 @@ jobs: test_proxy.py \ test_install.py \ test_extensions.py + timeout-minutes: 15 - name: Run admin tests run: | @@ -137,6 +139,7 @@ jobs: --bootstrap-pip-spec "$BOOTSTRAP_PIP_SPEC" \ ${{ matrix.extra_flags }} \ test_admin_installer.py + timeout-minutes: 15 - name: Run plugin tests run: | @@ -145,3 +148,4 @@ jobs: --installer-args "--plugin /srv/src/integration-tests/plugins/simplest" \ ${{ matrix.extra_flags }} \ test_simplest_plugin.py + timeout-minutes: 15 diff --git a/.github/workflows/unit-test.yaml b/.github/workflows/unit-test.yaml index d1b9d9d..31ed95c 100644 --- a/.github/workflows/unit-test.yaml +++ b/.github/workflows/unit-test.yaml @@ -60,7 +60,6 @@ jobs: python-version: ${{ matrix.python_version }} - name: Install venv, git and setup venv - timeout-minutes: 2 run: | export DEBIAN_FRONTEND=noninteractive apt-get update @@ -95,6 +94,7 @@ jobs: - name: Run unit tests run: pytest --verbose --maxfail=2 --color=yes --durations=10 --cov=tljh tests/ + timeout-minutes: 15 - name: Upload code coverage stats run: codecov