From 45869b025ef37a8ef7120d4ebed981efd033190c Mon Sep 17 00:00:00 2001 From: Martin Milata Date: Thu, 6 Mar 2025 15:52:03 +0100 Subject: [PATCH] ci: add timeouts for legacy.yml --- .github/workflows/legacy.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/legacy.yml b/.github/workflows/legacy.yml index 08334a71401..237219d3ddb 100644 --- a/.github/workflows/legacy.yml +++ b/.github/workflows/legacy.yml @@ -113,6 +113,7 @@ jobs: name: Device test runs-on: ubuntu-latest needs: legacy_emu + timeout-minutes: 30 strategy: matrix: coins: [universal, btconly] @@ -120,6 +121,7 @@ jobs: env: EMULATOR: 1 TREZOR_PYTEST_SKIP_ALTCOINS: ${{ matrix.coins == 'universal' && '0' || '1' }} + TESTOPTS: "--timeout 120" steps: - uses: actions/checkout@v4 with: @@ -148,6 +150,7 @@ jobs: name: Upgrade test runs-on: ubuntu-latest needs: legacy_emu + timeout-minutes: 10 strategy: matrix: asan: ${{ fromJSON(github.event_name == 'schedule' && '["noasan", "asan"]' || '["noasan"]') }} @@ -164,7 +167,7 @@ jobs: - run: chmod +x legacy/firmware/*.elf - uses: ./.github/actions/environment - run: nix-shell --run "tests/download_emulators.sh" - - run: nix-shell --run "poetry run pytest tests/upgrade_tests" + - run: nix-shell --run "poetry run pytest --timeout 120 tests/upgrade_tests" legacy_hwi_test: name: HWI test