From 835918afa14e0145295e1e32094310dd7626c484 Mon Sep 17 00:00:00 2001 From: Shahar Naveh <50263213+ShaharNaveh@users.noreply.github.com> Date: Sat, 13 Dec 2025 04:09:26 +0200 Subject: [PATCH] Set timeout only on test step (#6431) --- .github/workflows/ci.yaml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index f1bc7fed7..8539db1a2 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -237,7 +237,6 @@ jobs: RUST_BACKTRACE: full name: Run snippets and cpython tests runs-on: ${{ matrix.os }} - timeout-minutes: ${{ contains(matrix.os, 'windows') && 45 || 35 }} strategy: matrix: os: [macos-latest, ubuntu-latest, windows-latest] @@ -272,20 +271,29 @@ jobs: - name: run snippets run: python -m pip install -r requirements.txt && pytest -v working-directory: ./extra_tests + - if: runner.os == 'Linux' name: run cpython platform-independent tests run: target/release/rustpython -m test -j 1 -u all --slowest --fail-env-changed -v ${{ env.PLATFORM_INDEPENDENT_TESTS }} + timeout-minutes: 35 + - if: runner.os == 'Linux' name: run cpython platform-dependent tests (Linux) run: target/release/rustpython -m test -j 1 -u all --slowest --fail-env-changed -v -x ${{ env.PLATFORM_INDEPENDENT_TESTS }} + timeout-minutes: 35 + - if: runner.os == 'macOS' name: run cpython platform-dependent tests (MacOS) run: target/release/rustpython -m test -j 1 --slowest --fail-env-changed -v -x ${{ env.PLATFORM_INDEPENDENT_TESTS }} + timeout-minutes: 35 + - if: runner.os == 'Windows' name: run cpython platform-dependent tests (windows partial - fixme) run: target/release/rustpython -m test -j 1 --slowest --fail-env-changed -v -x ${{ env.PLATFORM_INDEPENDENT_TESTS }} ${{ env.WINDOWS_SKIPS }} + timeout-minutes: 45 + - if: runner.os != 'Windows' name: check that --install-pip succeeds run: |