Commit fa9bc02 1 parent 2e31a75 commit fa9bc02 Copy full SHA for fa9bc02
File tree 9 files changed +103
-50
lines changed
9 files changed +103
-50
lines changed Original file line number Diff line number Diff line change 4
4
pull_request :
5
5
branches :
6
6
- main
7
+ paths :
8
+ - " src/diffusers/**.py"
7
9
push :
8
10
branches :
9
11
- main
Original file line number Diff line number Diff line change 4
4
pull_request :
5
5
branches :
6
6
- main
7
+ paths :
8
+ - " src/diffusers/**.py"
7
9
push :
8
10
branches :
9
11
- main
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 4
4
pull_request :
5
5
branches :
6
6
- main
7
+ paths :
8
+ - " src/diffusers/**.py"
9
+ - " tests/**.py"
7
10
8
11
concurrency :
9
12
group : ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
16
19
PYTEST_TIMEOUT : 60
17
20
18
21
jobs :
22
+ check_code_quality :
23
+ runs-on : ubuntu-latest
24
+ steps :
25
+ - uses : actions/checkout@v3
26
+ - name : Set up Python
27
+ uses : actions/setup-python@v4
28
+ with :
29
+ python-version : " 3.8"
30
+ - name : Install dependencies
31
+ run : |
32
+ python -m pip install --upgrade pip
33
+ pip install .[quality]
34
+ - name : Check quality
35
+ run : |
36
+ ruff check examples tests src utils scripts
37
+ ruff format examples tests src utils scripts --check
38
+
39
+ check_repository_consistency :
40
+ needs : check_code_quality
41
+ runs-on : ubuntu-latest
42
+ steps :
43
+ - uses : actions/checkout@v3
44
+ - name : Set up Python
45
+ uses : actions/setup-python@v4
46
+ with :
47
+ python-version : " 3.8"
48
+ - name : Install dependencies
49
+ run : |
50
+ python -m pip install --upgrade pip
51
+ pip install .[quality]
52
+ - name : Check quality
53
+ run : |
54
+ python utils/check_copies.py
55
+ python utils/check_dummies.py
56
+ make deps_table_check_updated
57
+
19
58
run_fast_tests :
59
+ needs : [check_code_quality, check_repository_consistency]
20
60
strategy :
21
61
fail-fast : false
22
62
matrix :
Original file line number Diff line number Diff line change 4
4
pull_request :
5
5
branches :
6
6
- main
7
+ paths :
8
+ - " src/diffusers/**.py"
9
+ - " benchmarks/**.py"
10
+ - " examples/**.py"
11
+ - " scripts/**.py"
12
+ - " tests/**.py"
13
+ - " .github/**.yml"
14
+ - " utils/**.py"
7
15
push :
8
16
branches :
9
17
- ci-*
19
27
PYTEST_TIMEOUT : 60
20
28
21
29
jobs :
30
+ check_code_quality :
31
+ runs-on : ubuntu-latest
32
+ steps :
33
+ - uses : actions/checkout@v3
34
+ - name : Set up Python
35
+ uses : actions/setup-python@v4
36
+ with :
37
+ python-version : " 3.8"
38
+ - name : Install dependencies
39
+ run : |
40
+ python -m pip install --upgrade pip
41
+ pip install .[quality]
42
+ - name : Check quality
43
+ run : |
44
+ ruff check examples tests src utils scripts
45
+ ruff format examples tests src utils scripts --check
46
+
47
+ check_repository_consistency :
48
+ needs : check_code_quality
49
+ runs-on : ubuntu-latest
50
+ steps :
51
+ - uses : actions/checkout@v3
52
+ - name : Set up Python
53
+ uses : actions/setup-python@v4
54
+ with :
55
+ python-version : " 3.8"
56
+ - name : Install dependencies
57
+ run : |
58
+ python -m pip install --upgrade pip
59
+ pip install .[quality]
60
+ - name : Check quality
61
+ run : |
62
+ python utils/check_copies.py
63
+ python utils/check_dummies.py
64
+ make deps_table_check_updated
65
+
22
66
run_fast_tests :
67
+ needs : [check_code_quality, check_repository_consistency]
23
68
strategy :
24
69
fail-fast : false
25
70
matrix :
@@ -117,6 +162,7 @@ jobs:
117
162
path : reports
118
163
119
164
run_staging_tests :
165
+ needs : [check_code_quality, check_repository_consistency]
120
166
strategy :
121
167
fail-fast : false
122
168
matrix :
Original file line number Diff line number Diff line change 4
4
pull_request :
5
5
branches :
6
6
- main
7
+ paths :
8
+ - " src/diffusers/**.py"
7
9
push :
8
10
branches :
9
11
- main
Original file line number Diff line number Diff line change 4
4
push :
5
5
branches :
6
6
- main
7
-
7
+ paths :
8
+ - " src/diffusers/**.py"
9
+ - " examples/**.py"
10
+ - " tests/**.py"
8
11
9
12
env :
10
13
DIFFUSERS_IS_CI : yes
Original file line number Diff line number Diff line change 4
4
push :
5
5
branches :
6
6
- main
7
+ paths :
8
+ - " src/diffusers/**.py"
9
+ - " examples/**.py"
10
+ - " tests/**.py"
7
11
8
12
concurrency :
9
13
group : ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
Original file line number Diff line number Diff line change 4
4
push :
5
5
branches :
6
6
- main
7
+ paths :
8
+ - " src/diffusers/**.py"
9
+ - " tests/**.py"
7
10
8
11
env :
9
12
DIFFUSERS_IS_CI : yes
You can’t perform that action at this time.
0 commit comments