Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
chenpangpang
diffusers
Commits
fa9bc029
Unverified
Commit
fa9bc029
authored
Feb 28, 2024
by
Sayak Paul
Committed by
GitHub
Feb 28, 2024
Browse files
[Tests] make test steps dependent on certain things and general cleanup of the workflows (#7026)
make tests conditional and other things.
parent
2e31a759
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
103 additions
and
50 deletions
+103
-50
.github/workflows/pr_dependency_test.yml
.github/workflows/pr_dependency_test.yml
+2
-0
.github/workflows/pr_flax_dependency_test.yml
.github/workflows/pr_flax_dependency_test.yml
+2
-0
.github/workflows/pr_quality.yml
.github/workflows/pr_quality.yml
+0
-49
.github/workflows/pr_test_peft_backend.yml
.github/workflows/pr_test_peft_backend.yml
+40
-0
.github/workflows/pr_tests.yml
.github/workflows/pr_tests.yml
+46
-0
.github/workflows/pr_torch_dependency_test.yml
.github/workflows/pr_torch_dependency_test.yml
+2
-0
.github/workflows/push_tests.yml
.github/workflows/push_tests.yml
+4
-1
.github/workflows/push_tests_fast.yml
.github/workflows/push_tests_fast.yml
+4
-0
.github/workflows/push_tests_mps.yml
.github/workflows/push_tests_mps.yml
+3
-0
No files found.
.github/workflows/pr_dependency_test.yml
View file @
fa9bc029
...
@@ -4,6 +4,8 @@ on:
...
@@ -4,6 +4,8 @@ on:
pull_request
:
pull_request
:
branches
:
branches
:
-
main
-
main
paths
:
-
"
src/diffusers/**.py"
push
:
push
:
branches
:
branches
:
-
main
-
main
...
...
.github/workflows/pr_flax_dependency_test.yml
View file @
fa9bc029
...
@@ -4,6 +4,8 @@ on:
...
@@ -4,6 +4,8 @@ on:
pull_request
:
pull_request
:
branches
:
branches
:
-
main
-
main
paths
:
-
"
src/diffusers/**.py"
push
:
push
:
branches
:
branches
:
-
main
-
main
...
...
.github/workflows/pr_quality.yml
deleted
100644 → 0
View file @
2e31a759
name
:
Run code quality checks
on
:
pull_request
:
branches
:
-
main
push
:
branches
:
-
main
concurrency
:
group
:
${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress
:
true
jobs
:
check_code_quality
:
runs-on
:
ubuntu-latest
steps
:
-
uses
:
actions/checkout@v3
-
name
:
Set up Python
uses
:
actions/setup-python@v4
with
:
python-version
:
"
3.8"
-
name
:
Install dependencies
run
:
|
python -m pip install --upgrade pip
pip install .[quality]
-
name
:
Check quality
run
:
|
ruff check examples tests src utils scripts
ruff format examples tests src utils scripts --check
check_repository_consistency
:
runs-on
:
ubuntu-latest
steps
:
-
uses
:
actions/checkout@v3
-
name
:
Set up Python
uses
:
actions/setup-python@v4
with
:
python-version
:
"
3.8"
-
name
:
Install dependencies
run
:
|
python -m pip install --upgrade pip
pip install .[quality]
-
name
:
Check quality
run
:
|
python utils/check_copies.py
python utils/check_dummies.py
make deps_table_check_updated
.github/workflows/pr_test_peft_backend.yml
View file @
fa9bc029
...
@@ -4,6 +4,9 @@ on:
...
@@ -4,6 +4,9 @@ on:
pull_request
:
pull_request
:
branches
:
branches
:
-
main
-
main
paths
:
-
"
src/diffusers/**.py"
-
"
tests/**.py"
concurrency
:
concurrency
:
group
:
${{ github.workflow }}-${{ github.head_ref || github.run_id }}
group
:
${{ github.workflow }}-${{ github.head_ref || github.run_id }}
...
@@ -16,7 +19,44 @@ env:
...
@@ -16,7 +19,44 @@ env:
PYTEST_TIMEOUT
:
60
PYTEST_TIMEOUT
:
60
jobs
:
jobs
:
check_code_quality
:
runs-on
:
ubuntu-latest
steps
:
-
uses
:
actions/checkout@v3
-
name
:
Set up Python
uses
:
actions/setup-python@v4
with
:
python-version
:
"
3.8"
-
name
:
Install dependencies
run
:
|
python -m pip install --upgrade pip
pip install .[quality]
-
name
:
Check quality
run
:
|
ruff check examples tests src utils scripts
ruff format examples tests src utils scripts --check
check_repository_consistency
:
needs
:
check_code_quality
runs-on
:
ubuntu-latest
steps
:
-
uses
:
actions/checkout@v3
-
name
:
Set up Python
uses
:
actions/setup-python@v4
with
:
python-version
:
"
3.8"
-
name
:
Install dependencies
run
:
|
python -m pip install --upgrade pip
pip install .[quality]
-
name
:
Check quality
run
:
|
python utils/check_copies.py
python utils/check_dummies.py
make deps_table_check_updated
run_fast_tests
:
run_fast_tests
:
needs
:
[
check_code_quality
,
check_repository_consistency
]
strategy
:
strategy
:
fail-fast
:
false
fail-fast
:
false
matrix
:
matrix
:
...
...
.github/workflows/pr_tests.yml
View file @
fa9bc029
...
@@ -4,6 +4,14 @@ on:
...
@@ -4,6 +4,14 @@ on:
pull_request
:
pull_request
:
branches
:
branches
:
-
main
-
main
paths
:
-
"
src/diffusers/**.py"
-
"
benchmarks/**.py"
-
"
examples/**.py"
-
"
scripts/**.py"
-
"
tests/**.py"
-
"
.github/**.yml"
-
"
utils/**.py"
push
:
push
:
branches
:
branches
:
-
ci-*
-
ci-*
...
@@ -19,7 +27,44 @@ env:
...
@@ -19,7 +27,44 @@ env:
PYTEST_TIMEOUT
:
60
PYTEST_TIMEOUT
:
60
jobs
:
jobs
:
check_code_quality
:
runs-on
:
ubuntu-latest
steps
:
-
uses
:
actions/checkout@v3
-
name
:
Set up Python
uses
:
actions/setup-python@v4
with
:
python-version
:
"
3.8"
-
name
:
Install dependencies
run
:
|
python -m pip install --upgrade pip
pip install .[quality]
-
name
:
Check quality
run
:
|
ruff check examples tests src utils scripts
ruff format examples tests src utils scripts --check
check_repository_consistency
:
needs
:
check_code_quality
runs-on
:
ubuntu-latest
steps
:
-
uses
:
actions/checkout@v3
-
name
:
Set up Python
uses
:
actions/setup-python@v4
with
:
python-version
:
"
3.8"
-
name
:
Install dependencies
run
:
|
python -m pip install --upgrade pip
pip install .[quality]
-
name
:
Check quality
run
:
|
python utils/check_copies.py
python utils/check_dummies.py
make deps_table_check_updated
run_fast_tests
:
run_fast_tests
:
needs
:
[
check_code_quality
,
check_repository_consistency
]
strategy
:
strategy
:
fail-fast
:
false
fail-fast
:
false
matrix
:
matrix
:
...
@@ -117,6 +162,7 @@ jobs:
...
@@ -117,6 +162,7 @@ jobs:
path
:
reports
path
:
reports
run_staging_tests
:
run_staging_tests
:
needs
:
[
check_code_quality
,
check_repository_consistency
]
strategy
:
strategy
:
fail-fast
:
false
fail-fast
:
false
matrix
:
matrix
:
...
...
.github/workflows/pr_torch_dependency_test.yml
View file @
fa9bc029
...
@@ -4,6 +4,8 @@ on:
...
@@ -4,6 +4,8 @@ on:
pull_request
:
pull_request
:
branches
:
branches
:
-
main
-
main
paths
:
-
"
src/diffusers/**.py"
push
:
push
:
branches
:
branches
:
-
main
-
main
...
...
.github/workflows/push_tests.yml
View file @
fa9bc029
...
@@ -4,7 +4,10 @@ on:
...
@@ -4,7 +4,10 @@ on:
push
:
push
:
branches
:
branches
:
-
main
-
main
paths
:
-
"
src/diffusers/**.py"
-
"
examples/**.py"
-
"
tests/**.py"
env
:
env
:
DIFFUSERS_IS_CI
:
yes
DIFFUSERS_IS_CI
:
yes
...
...
.github/workflows/push_tests_fast.yml
View file @
fa9bc029
...
@@ -4,6 +4,10 @@ on:
...
@@ -4,6 +4,10 @@ on:
push
:
push
:
branches
:
branches
:
-
main
-
main
paths
:
-
"
src/diffusers/**.py"
-
"
examples/**.py"
-
"
tests/**.py"
concurrency
:
concurrency
:
group
:
${{ github.workflow }}-${{ github.head_ref || github.run_id }}
group
:
${{ github.workflow }}-${{ github.head_ref || github.run_id }}
...
...
.github/workflows/push_tests_mps.yml
View file @
fa9bc029
...
@@ -4,6 +4,9 @@ on:
...
@@ -4,6 +4,9 @@ on:
push
:
push
:
branches
:
branches
:
-
main
-
main
paths
:
-
"
src/diffusers/**.py"
-
"
tests/**.py"
env
:
env
:
DIFFUSERS_IS_CI
:
yes
DIFFUSERS_IS_CI
:
yes
...
...
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