Skip to content

Commit 2479b41

Browse files
ci: install bnb with [test] extras to get pytest + pipefail for test steps
First run showed tests silently "passed" in 1-2 min — pytest wasn't installed (--force-reinstall --no-deps stripped bnb's test extras) and | tee masked the resulting exit code. Align with the existing test-runner.yml pattern: install via the [test] extras so pytest and other test deps come along. Also add `shell: bash -o pipefail` to the pytest steps so pipe failures are surfaced. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 9bb8983 commit 2479b41

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

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

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ jobs:
6060
- name: Install torch + bnb (from continuous-release)
6161
run: |
6262
pip install torch==${TORCH_VERSION} --index-url ${PYPI_INDEX}
63-
pip install --force-reinstall --no-deps ${BNB_WHEEL_URL}
63+
pip install "bitsandbytes[test] @ ${BNB_WHEEL_URL}"
6464
6565
- name: Install transformers and clone matching tag
6666
run: |
@@ -80,6 +80,7 @@ jobs:
8080
env:
8181
RUN_SLOW: "1"
8282
CUDA_VISIBLE_DEVICES: "0"
83+
shell: bash -o pipefail {0}
8384
run: |
8485
mkdir -p ${GITHUB_WORKSPACE}/reports
8586
python -m pytest tests/quantization/bnb/ \
@@ -115,7 +116,7 @@ jobs:
115116
- name: Install torch + bnb (from continuous-release)
116117
run: |
117118
pip install torch==${TORCH_VERSION} --index-url ${PYPI_INDEX}
118-
pip install --force-reinstall --no-deps ${BNB_WHEEL_URL}
119+
pip install "bitsandbytes[test] @ ${BNB_WHEEL_URL}"
119120
120121
- name: Install accelerate and clone matching tag
121122
run: |
@@ -135,6 +136,7 @@ jobs:
135136
env:
136137
RUN_SLOW: "1"
137138
CUDA_VISIBLE_DEVICES: "0"
139+
shell: bash -o pipefail {0}
138140
run: |
139141
mkdir -p ${GITHUB_WORKSPACE}/reports
140142
python -m pytest tests/test_quantization.py \
@@ -170,7 +172,7 @@ jobs:
170172
- name: Install torch + bnb (from continuous-release)
171173
run: |
172174
pip install torch==${TORCH_VERSION} --index-url ${PYPI_INDEX}
173-
pip install --force-reinstall --no-deps ${BNB_WHEEL_URL}
175+
pip install "bitsandbytes[test] @ ${BNB_WHEEL_URL}"
174176
175177
- name: Install peft and clone matching tag
176178
run: |
@@ -190,6 +192,7 @@ jobs:
190192
env:
191193
IS_GITHUB_CI: "1"
192194
CUDA_VISIBLE_DEVICES: "0"
195+
shell: bash -o pipefail {0}
193196
run: |
194197
mkdir -p ${GITHUB_WORKSPACE}/reports
195198
python -m pytest \

0 commit comments

Comments
 (0)