mirror of
https://github.com/huggingface/transformers.git
synced 2025-07-15 10:38:23 +06:00
Add job names in Past CI artifacts (#19235)
Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
This commit is contained in:
parent
f16bbf1475
commit
163cd15279
36
.github/workflows/self-past.yml
vendored
36
.github/workflows/self-past.yml
vendored
@ -15,6 +15,11 @@ on:
|
|||||||
version:
|
version:
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
|
# Use this to control the commit to test against
|
||||||
|
sha:
|
||||||
|
default: 'main'
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
|
|
||||||
env:
|
env:
|
||||||
HF_HOME: /mnt/cache
|
HF_HOME: /mnt/cache
|
||||||
@ -67,18 +72,19 @@ jobs:
|
|||||||
outputs:
|
outputs:
|
||||||
matrix: ${{ steps.set-matrix.outputs.matrix }}
|
matrix: ${{ steps.set-matrix.outputs.matrix }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout transformers
|
- name: Update clone
|
||||||
uses: actions/checkout@v2
|
working-directory: /transformers
|
||||||
with:
|
run: git fetch && git checkout ${{ inputs.sha }}
|
||||||
fetch-depth: 2
|
|
||||||
|
|
||||||
- name: Cleanup
|
- name: Cleanup
|
||||||
|
working-directory: /transformers
|
||||||
run: |
|
run: |
|
||||||
rm -rf tests/__pycache__
|
rm -rf tests/__pycache__
|
||||||
rm -rf tests/models/__pycache__
|
rm -rf tests/models/__pycache__
|
||||||
rm -rf reports
|
rm -rf reports
|
||||||
|
|
||||||
- id: set-matrix
|
- id: set-matrix
|
||||||
|
working-directory: /transformers
|
||||||
name: Identify models to test
|
name: Identify models to test
|
||||||
run: |
|
run: |
|
||||||
cd tests
|
cd tests
|
||||||
@ -99,7 +105,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Update clone
|
- name: Update clone
|
||||||
working-directory: /transformers
|
working-directory: /transformers
|
||||||
run: git fetch && git checkout ${{ github.sha }}
|
run: git fetch && git checkout ${{ inputs.sha }}
|
||||||
|
|
||||||
- name: Echo folder ${{ matrix.folders }}
|
- name: Echo folder ${{ matrix.folders }}
|
||||||
shell: bash
|
shell: bash
|
||||||
@ -130,6 +136,15 @@ jobs:
|
|||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
run: cat /transformers/reports/${{ matrix.machine_type }}_tests_gpu_${{ matrix.folders }}/failures_short.txt
|
run: cat /transformers/reports/${{ matrix.machine_type }}_tests_gpu_${{ matrix.folders }}/failures_short.txt
|
||||||
|
|
||||||
|
- name: Save job name
|
||||||
|
if: ${{ always() }}
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
matrix_folders=${matrix_folders/'models_'/'models/'}
|
||||||
|
job_name="Model tests ($matrix_folders, ${{ matrix.machine_type }})"
|
||||||
|
echo "$job_name"
|
||||||
|
echo "$job_name" > /transformers/reports/${{ matrix.machine_type }}_tests_gpu_${{ matrix.folders }}/job_name.txt
|
||||||
|
|
||||||
- name: Test suite reports artifacts
|
- name: Test suite reports artifacts
|
||||||
if: ${{ always() }}
|
if: ${{ always() }}
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
@ -152,7 +167,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Update clone
|
- name: Update clone
|
||||||
working-directory: /transformers
|
working-directory: /transformers
|
||||||
run: git fetch && git checkout ${{ github.sha }}
|
run: git fetch && git checkout ${{ inputs.sha }}
|
||||||
|
|
||||||
- name: Echo folder ${{ matrix.folders }}
|
- name: Echo folder ${{ matrix.folders }}
|
||||||
shell: bash
|
shell: bash
|
||||||
@ -183,6 +198,15 @@ jobs:
|
|||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
run: cat /transformers/reports/${{ matrix.machine_type }}_tests_gpu_${{ matrix.folders }}/failures_short.txt
|
run: cat /transformers/reports/${{ matrix.machine_type }}_tests_gpu_${{ matrix.folders }}/failures_short.txt
|
||||||
|
|
||||||
|
- name: Save job name
|
||||||
|
if: ${{ always() }}
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
matrix_folders=${matrix_folders/'models_'/'models/'}
|
||||||
|
job_name="Model tests ($matrix_folders, ${{ matrix.machine_type }})"
|
||||||
|
echo "$job_name"
|
||||||
|
echo "$job_name" > /transformers/reports/${{ matrix.machine_type }}_tests_gpu_${{ matrix.folders }}/job_name.txt
|
||||||
|
|
||||||
- name: Test suite reports artifacts
|
- name: Test suite reports artifacts
|
||||||
if: ${{ always() }}
|
if: ${{ always() }}
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
|
Loading…
Reference in New Issue
Block a user