@@ -3,6 +3,7 @@ name: CI & CD
33on :
44 push :
55 branches :
6+ - main
67 - master
78 pull_request :
89
@@ -14,20 +15,21 @@ jobs:
1415 strategy :
1516 matrix :
1617 os : [ ubuntu-latest ]
18+ python-version : ['3.6.15']
1719 steps :
18- - uses : actions/checkout@v2
19- - uses : actions/setup-python@v2
20+ - uses : actions/checkout@v3
21+ - uses : actions/setup-python@v3
2022 with :
21- python-version : ' 3.6.15 '
23+ python-version : ${{ matrix.python-version }}
2224 - name : deps
2325 timeout-minutes : 1
2426 run : sh pyscript.sh install
2527 - name : security-analysis
2628 timeout-minutes : 1
27- run : sh pyscript.sh security_analysis
29+ run : sh pyscript.sh security-analysis
2830 - name : static-analysis
2931 timeout-minutes : 1
30- run : sh pyscript.sh static_analysis
32+ run : sh pyscript.sh static-analysis
3133 - name : test
3234 timeout-minutes : 3
3335 run : sh pyscript.sh test
@@ -36,18 +38,19 @@ jobs:
3638 run : sh pyscript.sh clean
3739
3840 CD :
39- if : github.ref == 'refs/heads/master'
41+ if : github.ref == 'refs/heads/main' || github.ref == 'refs/heads/ master'
4042 needs : CI
4143 timeout-minutes : 15
4244 runs-on : ${{ matrix.os }}
4345 strategy :
4446 matrix :
4547 os : [ ubuntu-latest ]
48+ python-version : ['3.6.15']
4649 steps :
47- - uses : actions/checkout@v2
48- - uses : actions/setup-python@v2
50+ - uses : actions/checkout@v3
51+ - uses : actions/setup-python@v3
4952 with :
50- python-version : ' 3.6.15 '
53+ python-version : ${{ matrix.python-version }}
5154 - name : deps
5255 timeout-minutes : 1
5356 run : sh pyscript.sh install
0 commit comments