@@ -24,101 +24,100 @@ on:
24
24
SLACK_WEBHOOK :
25
25
required : true
26
26
jobs :
27
- # changes:
28
- # name: changes
29
- # runs-on: ubuntu-latest
30
- # outputs:
31
- # packages: ${{ steps.changes.outputs.packages }}
32
- # steps:
33
- # - uses: actions/checkout@v4
34
- # - id: changes
35
- # uses: ./.github/actions/changes
36
- # lint:
37
- # name: Linting
38
- # needs: [ changes ]
39
- # runs-on: ubuntu-latest
40
- # strategy:
41
- # matrix:
42
- # python-version: ['3.10']
43
- # current_package: ${{ fromJson(inputs.packages) }}
44
- # steps:
45
- # - name: has change in sub package
46
- # id: has_change
47
- # run: |
48
- # PACKAGE_NAME=$(echo $PACKAGE | cut -d'/' -f3)
49
- # echo "has_change=$(echo $CHANGES | jq -r .$PACKAGE_NAME)" >> $GITHUB_OUTPUT
50
- # shell: bash
51
- # env:
52
- # PACKAGE: ${{ matrix.current_package }}
53
- # CHANGES: ${{ needs.changes.outputs.packages }}
54
- # - uses: actions/checkout@v4
55
- # if: ${{ steps.has_change.outputs.has_change != 'false' }}
56
- # - id: lint
57
- # if: ${{ steps.has_change.outputs.has_change != 'false' }}
58
- # uses: ./.github/actions/linting
59
- # with:
60
- # python-version: ${{ matrix.python-version }}
61
- # current_package: ${{ matrix.current_package }}
62
- # isort:
63
- # name: Isorting
64
- # needs: [ changes ]
65
- # runs-on: ubuntu-latest
66
- # strategy:
67
- # matrix:
68
- # python-version: ['3.10']
69
- # current_package: ${{ fromJson(inputs.packages) }}
70
- # steps:
71
- # - name: has change in sub package
72
- # id: has_change
73
- # run: |
74
- # PACKAGE_NAME=$(echo $PACKAGE | cut -d'/' -f3)
75
- # echo "has_change=$(echo $CHANGES | jq -r .$PACKAGE_NAME)" >> $GITHUB_OUTPUT
76
- # shell: bash
77
- # env:
78
- # PACKAGE: ${{ matrix.current_package }}
79
- # CHANGES: ${{ needs.changes.outputs.packages }}
80
- # - uses: actions/checkout@v4
81
- # if: ${{ steps.has_change.outputs.has_change != 'false' }}
82
- # - id: isort
83
- # if: ${{ steps.has_change.outputs.has_change != 'false' }}
84
- # uses: ./.github/actions/isort
85
- # with:
86
- # python-version: ${{ matrix.python-version }}
87
- # current_package: ${{ matrix.current_package }}
88
- # black:
89
- # name: Black
90
- # needs: [ changes ]
91
- # runs-on: ubuntu-latest
92
- # strategy:
93
- # matrix:
94
- # python-version: ['3.10']
95
- # current_package: ${{ fromJson(inputs.packages) }}
96
- # steps:
97
- # - name: has change in sub package
98
- # id: has_change
99
- # run: |
100
- # PACKAGE_NAME=$(echo $PACKAGE | cut -d'/' -f3)
101
- # echo "has_change=$(echo $CHANGES | jq -r .$PACKAGE_NAME)" >> $GITHUB_OUTPUT
102
- # shell: bash
103
- # env:
104
- # PACKAGE: ${{ matrix.current_package }}
105
- # CHANGES: ${{ needs.changes.outputs.packages }}
106
- # - uses: actions/checkout@v4
107
- # if: ${{ steps.has_change.outputs.has_change != 'false' }}
108
- # - id: isort
109
- # if: ${{ steps.has_change.outputs.has_change != 'false' }}
110
- # uses: ./.github/actions/black
111
- # with:
112
- # python-version: ${{ matrix.python-version }}
113
- # current_package: ${{ matrix.current_package }}
27
+ changes :
28
+ name : changes
29
+ runs-on : ubuntu-latest
30
+ outputs :
31
+ packages : ${{ steps.changes.outputs.packages }}
32
+ steps :
33
+ - uses : actions/checkout@v4
34
+ - id : changes
35
+ uses : ./.github/actions/changes
36
+ lint :
37
+ name : Linting
38
+ needs : [ changes ]
39
+ runs-on : ubuntu-latest
40
+ strategy :
41
+ matrix :
42
+ python-version : ['3.10']
43
+ current_package : ${{ fromJson(inputs.packages) }}
44
+ steps :
45
+ - name : has change in sub package
46
+ id : has_change
47
+ run : |
48
+ PACKAGE_NAME=$(echo $PACKAGE | cut -d'/' -f3)
49
+ echo "has_change=$(echo $CHANGES | jq -r .$PACKAGE_NAME)" >> $GITHUB_OUTPUT
50
+ shell : bash
51
+ env :
52
+ PACKAGE : ${{ matrix.current_package }}
53
+ CHANGES : ${{ needs.changes.outputs.packages }}
54
+ - uses : actions/checkout@v4
55
+ if : ${{ steps.has_change.outputs.has_change != 'false' }}
56
+ - id : lint
57
+ if : ${{ steps.has_change.outputs.has_change != 'false' }}
58
+ uses : ./.github/actions/linting
59
+ with :
60
+ python-version : ${{ matrix.python-version }}
61
+ current_package : ${{ matrix.current_package }}
62
+ isort :
63
+ name : Isorting
64
+ needs : [ changes ]
65
+ runs-on : ubuntu-latest
66
+ strategy :
67
+ matrix :
68
+ python-version : ['3.10']
69
+ current_package : ${{ fromJson(inputs.packages) }}
70
+ steps :
71
+ - name : has change in sub package
72
+ id : has_change
73
+ run : |
74
+ PACKAGE_NAME=$(echo $PACKAGE | cut -d'/' -f3)
75
+ echo "has_change=$(echo $CHANGES | jq -r .$PACKAGE_NAME)" >> $GITHUB_OUTPUT
76
+ shell : bash
77
+ env :
78
+ PACKAGE : ${{ matrix.current_package }}
79
+ CHANGES : ${{ needs.changes.outputs.packages }}
80
+ - uses : actions/checkout@v4
81
+ if : ${{ steps.has_change.outputs.has_change != 'false' }}
82
+ - id : isort
83
+ if : ${{ steps.has_change.outputs.has_change != 'false' }}
84
+ uses : ./.github/actions/isort
85
+ with :
86
+ python-version : ${{ matrix.python-version }}
87
+ current_package : ${{ matrix.current_package }}
88
+ black :
89
+ name : Black
90
+ needs : [ changes ]
91
+ runs-on : ubuntu-latest
92
+ strategy :
93
+ matrix :
94
+ python-version : ['3.10']
95
+ current_package : ${{ fromJson(inputs.packages) }}
96
+ steps :
97
+ - name : has change in sub package
98
+ id : has_change
99
+ run : |
100
+ PACKAGE_NAME=$(echo $PACKAGE | cut -d'/' -f3)
101
+ echo "has_change=$(echo $CHANGES | jq -r .$PACKAGE_NAME)" >> $GITHUB_OUTPUT
102
+ shell : bash
103
+ env :
104
+ PACKAGE : ${{ matrix.current_package }}
105
+ CHANGES : ${{ needs.changes.outputs.packages }}
106
+ - uses : actions/checkout@v4
107
+ if : ${{ steps.has_change.outputs.has_change != 'false' }}
108
+ - id : isort
109
+ if : ${{ steps.has_change.outputs.has_change != 'false' }}
110
+ uses : ./.github/actions/black
111
+ with :
112
+ python-version : ${{ matrix.python-version }}
113
+ current_package : ${{ matrix.current_package }}
114
114
test :
115
115
name : Test
116
- # needs: [isort, lint, black]
116
+ needs : [isort, lint, black]
117
117
runs-on : ubuntu-latest
118
118
strategy :
119
119
matrix :
120
- # python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
121
- python-version : ['3.10' ]
120
+ python-version : ['3.8', '3.9', '3.10', '3.11', '3.12']
122
121
current_package : ${{ fromJson(inputs.packages) }}
123
122
steps :
124
123
- uses : actions/checkout@v4
0 commit comments