Skip to content

Scrapy, a fast high-level web crawling & scraping framework for Python.

Add timeout-minutes to CI jobs that lacked one (#8076)

Adrian96823bb31dbe
diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml
index ab29f948a..f8939f7df 100644
--- a/.github/workflows/checks.yml
+++ b/.github/workflows/checks.yml
@@ -19,6 +19,7 @@ jobs:
checks:
if: github.event.action != 'closed'
runs-on: ubuntu-latest
+ timeout-minutes: 10
env:
# Make uv use the interpreter that actions/setup-python installed instead
# of downloading one of its own.
@@ -72,6 +73,7 @@ jobs:
pre-commit:
if: github.event.action != 'closed'
runs-on: ubuntu-latest
+ timeout-minutes: 10
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
diff --git a/.github/workflows/codspeed.yml b/.github/workflows/codspeed.yml
index 30f6dafa6..d2db7f8d5 100644
--- a/.github/workflows/codspeed.yml
+++ b/.github/workflows/codspeed.yml
@@ -24,6 +24,7 @@ jobs:
benchmark:
if: github.event.action != 'closed'
runs-on: ubuntu-latest
+ timeout-minutes: 15
env:
# Make uv use the interpreter that actions/setup-python installed
# instead of downloading one of its own.
diff --git a/.github/workflows/tests-macos.yml b/.github/workflows/tests-macos.yml
index 8f6894078..fd988c937 100644
--- a/.github/workflows/tests-macos.yml
+++ b/.github/workflows/tests-macos.yml
@@ -20,6 +20,7 @@ jobs:
if: github.event.action != 'closed'
name: tests (${{ matrix.python-version }}, ${{ matrix.env.TOXENV }})
runs-on: macos-latest
+ timeout-minutes: 15
env:
PYTEST_ADDOPTS: ${{ matrix.coverage && '-n logical' || '-n logical --no-cov' }}
# Make uv use the interpreter that actions/setup-python installed instead
diff --git a/.github/workflows/tests-ubuntu.yml b/.github/workflows/tests-ubuntu.yml
index 28b50d392..c7e479ebc 100644
--- a/.github/workflows/tests-ubuntu.yml
+++ b/.github/workflows/tests-ubuntu.yml
@@ -20,6 +20,7 @@ jobs:
if: github.event.action != 'closed'
name: tests (${{ matrix.python-version }}, ${{ matrix.env.TOXENV }})
runs-on: ubuntu-latest
+ timeout-minutes: 20
env:
PYTEST_ADDOPTS: ${{ matrix.coverage && '-n logical' || '-n logical --no-cov' }}
# Make uv use the interpreter that actions/setup-python installed instead
diff --git a/.github/workflows/tests-windows.yml b/.github/workflows/tests-windows.yml
index a72aace69..2278bdb37 100644
--- a/.github/workflows/tests-windows.yml
+++ b/.github/workflows/tests-windows.yml
@@ -20,6 +20,7 @@ jobs:
if: github.event.action != 'closed'
name: tests (${{ matrix.python-version }}, ${{ matrix.env.TOXENV }})
runs-on: windows-latest
+ timeout-minutes: 20
env:
PYTEST_ADDOPTS: ${{ matrix.coverage && '-n logical' || '-n logical --no-cov' }}
# Make uv use the interpreter that actions/setup-python installed instead