From 700e0cd65f0cee59cb298b30932caf311e6c9519 Mon Sep 17 00:00:00 2001 From: Yih-Dar <2521628+ydshieh@users.noreply.github.com> Date: Thu, 17 Nov 2022 15:55:00 +0100 Subject: [PATCH] Add missing report button for Example test (#20293) Co-authored-by: ydshieh --- .github/workflows/self-scheduled.yml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/self-scheduled.yml b/.github/workflows/self-scheduled.yml index 41b9f39bd47..59fc111af13 100644 --- a/.github/workflows/self-scheduled.yml +++ b/.github/workflows/self-scheduled.yml @@ -204,7 +204,11 @@ jobs: run_examples_gpu: name: Examples directory - runs-on: [self-hosted, single-gpu-docker] + strategy: + fail-fast: false + matrix: + machine_type: [single-gpu] + runs-on: ${{ format('{0}-{1}', matrix.machine_type, 'docker') }} container: image: huggingface/transformers-all-latest-gpu options: --gpus 0 --shm-size "16gb" --ipc host -v /mnt/cache/.cache/huggingface:/mnt/cache/ @@ -231,19 +235,19 @@ jobs: working-directory: /transformers run: | pip install -r examples/pytorch/_tests_requirements.txt - python3 -m pytest -v --make-reports=single-gpu_examples_gpu examples/pytorch + python3 -m pytest -v --make-reports=${{ matrix.machine_type }}_examples_gpu examples/pytorch - name: Failure short reports if: ${{ failure() }} continue-on-error: true - run: cat /transformers/reports/single-gpu_examples_gpu/failures_short.txt + run: cat /transformers/reports/${{ matrix.machine_type }}_examples_gpu/failures_short.txt - name: Test suite reports artifacts if: ${{ always() }} uses: actions/upload-artifact@v2 with: - name: single-gpu_run_examples_gpu - path: /transformers/reports/single-gpu_examples_gpu + name: ${{ matrix.machine_type }}_run_examples_gpu + path: /transformers/reports/${{ matrix.machine_type }}_examples_gpu run_pipelines_torch_gpu: name: PyTorch pipelines