Skip to content

Commit 441417d

Browse files
ci: install pytest-xdist for transformers v5.x compatibility
Transformers v5.x registers a pytest plugin (NetworkDebugPlugin) that uses the pytest_configure_node hook from pytest-xdist. Without xdist installed, pluggy raises PluginValidationError during collection. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent f5a4634 commit 441417d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/tests-integration-nightly.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ jobs:
6565
6666
- name: Install transformers and clone matching tag
6767
run: |
68-
pip install -U transformers accelerate
68+
pip install -U transformers accelerate pytest-xdist
6969
TRANSFORMERS_VERSION=$(pip show transformers | awk '/^Version:/ {print $2}')
7070
echo "Installed transformers v${TRANSFORMERS_VERSION}"
7171
git clone --depth=1 --branch "v${TRANSFORMERS_VERSION}" \
@@ -120,7 +120,7 @@ jobs:
120120
121121
- name: Install transformers and clone matching tag
122122
run: |
123-
pip install -U transformers accelerate
123+
pip install -U transformers accelerate pytest-xdist
124124
TRANSFORMERS_VERSION=$(pip show transformers | awk '/^Version:/ {print $2}')
125125
echo "Installed transformers v${TRANSFORMERS_VERSION}"
126126
git clone --depth=1 --branch "v${TRANSFORMERS_VERSION}" \

0 commit comments

Comments
 (0)