Skip to content

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

CI: use -n logical (#8075)

Adrianfc9e85f35718
diff --git a/.github/workflows/tests-macos.yml b/.github/workflows/tests-macos.yml
index 6df106136..8f6894078 100644
--- a/.github/workflows/tests-macos.yml
+++ b/.github/workflows/tests-macos.yml
@@ -21,7 +21,7 @@ jobs:
name: tests (${{ matrix.python-version }}, ${{ matrix.env.TOXENV }})
runs-on: macos-latest
env:
- PYTEST_ADDOPTS: ${{ matrix.coverage && '-n auto' || '-n auto --no-cov' }}
+ PYTEST_ADDOPTS: ${{ matrix.coverage && '-n logical' || '-n logical --no-cov' }}
# Make uv use the interpreter that actions/setup-python installed instead
# of downloading one of its own.
UV_PYTHON_PREFERENCE: only-system
diff --git a/.github/workflows/tests-ubuntu.yml b/.github/workflows/tests-ubuntu.yml
index efde5ec6c..28b50d392 100644
--- a/.github/workflows/tests-ubuntu.yml
+++ b/.github/workflows/tests-ubuntu.yml
@@ -21,7 +21,7 @@ jobs:
name: tests (${{ matrix.python-version }}, ${{ matrix.env.TOXENV }})
runs-on: ubuntu-latest
env:
- PYTEST_ADDOPTS: ${{ matrix.coverage && '-n auto' || '-n auto --no-cov' }}
+ PYTEST_ADDOPTS: ${{ matrix.coverage && '-n logical' || '-n logical --no-cov' }}
# Make uv use the interpreter that actions/setup-python installed instead
# of downloading one of its own.
UV_PYTHON_PREFERENCE: only-system
diff --git a/.github/workflows/tests-vcs-deps.yml b/.github/workflows/tests-vcs-deps.yml
index f573f5fc3..146ea2077 100644
--- a/.github/workflows/tests-vcs-deps.yml
+++ b/.github/workflows/tests-vcs-deps.yml
@@ -20,7 +20,7 @@ jobs:
env:
# A development branch of a dependency can make a test hang forever, so
# tests get a time limit here that they do not need elsewhere.
- PYTEST_ADDOPTS: -n auto --no-cov --timeout=120
+ PYTEST_ADDOPTS: -n logical --no-cov --timeout=120
TOXENV: vcs-deps
UV_PYTHON_PREFERENCE: only-system
steps:
diff --git a/.github/workflows/tests-windows.yml b/.github/workflows/tests-windows.yml
index c49dc39c3..a72aace69 100644
--- a/.github/workflows/tests-windows.yml
+++ b/.github/workflows/tests-windows.yml
@@ -21,7 +21,7 @@ jobs:
name: tests (${{ matrix.python-version }}, ${{ matrix.env.TOXENV }})
runs-on: windows-latest
env:
- PYTEST_ADDOPTS: ${{ matrix.coverage && '-n auto' || '-n auto --no-cov' }}
+ PYTEST_ADDOPTS: ${{ matrix.coverage && '-n logical' || '-n logical --no-cov' }}
# Make uv use the interpreter that actions/setup-python installed instead
# of downloading one of its own.
UV_PYTHON_PREFERENCE: only-system
diff --git a/tox.ini b/tox.ini
index 8a5490217..112f8b95f 100644
--- a/tox.ini
+++ b/tox.ini
@@ -40,6 +40,7 @@ deps =
coverage >= 7.10.6
httpx2
pexpect >= 4.8.0
+ psutil
pyftpdlib >= 2.0.1
pygments
pytest