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
renzhc
diffusers_dcu
Commits
1871a69e
Unverified
Commit
1871a69e
authored
Feb 21, 2025
by
Sayak Paul
Committed by
GitHub
Feb 21, 2025
Browse files
fix: run tests from a pr workflow. (#9696)
* fix: run tests from a pr workflow. * correct * update * checking.
parent
e3bc4aab
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
.github/workflows/run_tests_from_a_pr.yml
.github/workflows/run_tests_from_a_pr.yml
+7
-7
No files found.
.github/workflows/run_tests_from_a_pr.yml
View file @
1871a69e
...
...
@@ -7,8 +7,8 @@ on:
default
:
'
diffusers/diffusers-pytorch-cuda'
description
:
'
Name
of
the
Docker
image'
required
:
true
branch
:
description
:
'
PR
Branch
to
test
on'
pr_number
:
description
:
'
PR
number
to
test
on'
required
:
true
test
:
description
:
'
Tests
to
run
(e.g.:
`tests/models`).'
...
...
@@ -43,8 +43,8 @@ jobs:
exit 1
fi
if [[ ! "$PY_TEST" =~ ^tests/(models|pipelines) ]]; then
echo "Error: The input string must contain either 'models'
or
'pipelines' after 'tests/'."
if [[ ! "$PY_TEST" =~ ^tests/(models|pipelines
|lora
) ]]; then
echo "Error: The input string must contain either 'models'
,
'pipelines'
, or 'lora'
after 'tests/'."
exit 1
fi
...
...
@@ -53,13 +53,13 @@ jobs:
exit 1
fi
echo "$PY_TEST"
shell
:
bash -e {0}
-
name
:
Checkout PR branch
uses
:
actions/checkout@v4
with
:
ref
:
${{ github.event.inputs.branch }}
repository
:
${{ github.event.pull_request.head.repo.full_name }}
ref
:
refs/pull/${{ inputs.pr_number }}/head
-
name
:
Install pytest
run
:
|
...
...
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