Skip to content

Commit 6ffd18c

Browse files
committed
remove latest
1 parent 9dbb1d4 commit 6ffd18c

File tree

1 file changed

+10
-18
lines changed

1 file changed

+10
-18
lines changed

.github/workflows/pr_tests.yml

Lines changed: 10 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -239,10 +239,8 @@ jobs:
239239
needs: [check_code_quality, check_repository_consistency]
240240
strategy:
241241
fail-fast: false
242-
matrix:
243-
lib-versions: ["main", "latest"]
244242

245-
name: LoRA - ${{ matrix.lib-versions }}
243+
name: LoRA tests with PEFT main
246244

247245
runs-on:
248246
group: aws-general-8-plus
@@ -266,43 +264,37 @@ jobs:
266264
python -m venv /opt/venv && export PATH="/opt/venv/bin:$PATH"
267265
python -m uv pip install -e [quality,test]
268266
# TODO (sayakpaul, DN6): revisit `--no-deps`
269-
if [ "${{ matrix.lib-versions }}" == "main" ]; then
270-
python -m pip install -U peft@git+https://github.com/huggingface/peft.git --no-deps
271-
python -m uv pip install -U transformers@git+https://github.com/huggingface/transformers.git --no-deps
272-
pip uninstall accelerate -y && python -m uv pip install -U accelerate@git+https://github.com/huggingface/accelerate.git --no-deps
273-
else
274-
python -m uv pip install -U peft --no-deps
275-
python -m uv pip install -U transformers accelerate --no-deps
276-
fi
267+
python -m pip install -U peft@git+https://github.com/huggingface/peft.git --no-deps
268+
python -m uv pip install -U transformers@git+https://github.com/huggingface/transformers.git --no-deps
269+
pip uninstall accelerate -y && python -m uv pip install -U accelerate@git+https://github.com/huggingface/accelerate.git --no-deps
277270
278271
- name: Environment
279272
run: |
280273
python -m venv /opt/venv && export PATH="/opt/venv/bin:$PATH"
281274
python utils/print_env.py
282275
283-
- name: Run fast PyTorch LoRA CPU tests with PEFT backend
276+
- name: Run fast PyTorch LoRA tests with PEFT
284277
run: |
285278
python -m venv /opt/venv && export PATH="/opt/venv/bin:$PATH"
286279
python -m pytest -n 4 --max-worker-restart=0 --dist=loadfile \
287280
-s -v \
288-
--make-reports=tests_${{ matrix.lib-versions }} \
281+
--make-reports=tests_peft_main \
289282
tests/lora/
290283
python -m pytest -n 4 --max-worker-restart=0 --dist=loadfile \
291284
-s -v \
292-
--make-reports=tests_models_lora_${{ matrix.lib-versions }} \
285+
--make-reports=tests_models_lora_peft_main \
293286
tests/models/ -k "lora"
294287
295-
296288
- name: Failure short reports
297289
if: ${{ failure() }}
298290
run: |
299-
cat reports/tests_${{ matrix.lib-versions }}_failures_short.txt
300-
cat reports/tests_models_lora_${{ matrix.lib-versions }}_failures_short.txt
291+
cat reports/tests_lora_failures_short.txt
292+
cat reports/tests_models_lora_failures_short.txt
301293
302294
- name: Test suite reports artifacts
303295
if: ${{ always() }}
304296
uses: actions/upload-artifact@v4
305297
with:
306-
name: pr_${{ matrix.lib-versions }}_test_reports
298+
name: pr_main_test_reports
307299
path: reports
308300

0 commit comments

Comments
 (0)