Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
163cd152
Unverified
Commit
163cd152
authored
Sep 29, 2022
by
Yih-Dar
Committed by
GitHub
Sep 29, 2022
Browse files
Add job names in Past CI artifacts (#19235)
Co-authored-by:
ydshieh
<
ydshieh@users.noreply.github.com
>
parent
f16bbf14
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
6 deletions
+30
-6
.github/workflows/self-past.yml
.github/workflows/self-past.yml
+30
-6
No files found.
.github/workflows/self-past.yml
View file @
163cd152
...
...
@@ -15,6 +15,11 @@ on:
version
:
required
:
true
type
:
string
# Use this to control the commit to test against
sha
:
default
:
'
main'
required
:
false
type
:
string
env
:
HF_HOME
:
/mnt/cache
...
...
@@ -67,18 +72,19 @@ jobs:
outputs
:
matrix
:
${{ steps.set-matrix.outputs.matrix }}
steps
:
-
name
:
Checkout transformers
uses
:
actions/checkout@v2
with
:
fetch-depth
:
2
-
name
:
Update clone
working-directory
:
/transformers
run
:
git fetch && git checkout ${{ inputs.sha }}
-
name
:
Cleanup
working-directory
:
/transformers
run
:
|
rm -rf tests/__pycache__
rm -rf tests/models/__pycache__
rm -rf reports
-
id
:
set-matrix
working-directory
:
/transformers
name
:
Identify models to test
run
:
|
cd tests
...
...
@@ -99,7 +105,7 @@ jobs:
steps
:
-
name
:
Update clone
working-directory
:
/transformers
run
:
git fetch && git checkout ${{
github
.sha }}
run
:
git fetch && git checkout ${{
inputs
.sha }}
-
name
:
Echo folder ${{ matrix.folders }}
shell
:
bash
...
...
@@ -130,6 +136,15 @@ jobs:
continue-on-error
:
true
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
if
:
${{ always() }}
uses
:
actions/upload-artifact@v2
...
...
@@ -152,7 +167,7 @@ jobs:
steps
:
-
name
:
Update clone
working-directory
:
/transformers
run
:
git fetch && git checkout ${{
github
.sha }}
run
:
git fetch && git checkout ${{
inputs
.sha }}
-
name
:
Echo folder ${{ matrix.folders }}
shell
:
bash
...
...
@@ -183,6 +198,15 @@ jobs:
continue-on-error
:
true
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
if
:
${{ always() }}
uses
:
actions/upload-artifact@v2
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment