File tree 4 files changed +134
-123
lines changed
samples-and-tests/i-am-a-developer
4 files changed +134
-123
lines changed Original file line number Diff line number Diff line change @@ -24,13 +24,13 @@ jobs:
24
24
name : Check / Tests -> JDK-${{ matrix.jdk }}/${{ matrix.os }}
25
25
steps :
26
26
- name : Checkout
27
- uses : actions/checkout@v2
27
+ uses : actions/checkout@v4
28
28
with :
29
29
# we don't know what commit the last tag was it's safer to get entire repo so previousStableVersion resolves
30
30
fetch-depth : 0
31
31
32
32
- name : Set up python 3
33
- uses : actions/setup-python@v3
33
+ uses : actions/setup-python@v4
34
34
with :
35
35
python-version : ' 3.x'
36
36
architecture : ' x64'
39
39
- run : pip install -r python/requirements.txt
40
40
41
41
- name : Set up JDK ${{ matrix.jdk }}
42
- uses : actions/setup-java@v2
42
+ uses : actions/setup-java@v3
43
43
with :
44
44
java-version : ${{ matrix.jdk }}
45
45
distribution : ' adopt'
@@ -55,19 +55,19 @@ jobs:
55
55
name : BUILD ${{ github.sha }}
56
56
steps :
57
57
- name : Checkout
58
- uses : actions/checkout@v2
58
+ uses : actions/checkout@v4
59
59
with :
60
60
# we don't know what commit the last tag was it's safer to get entire repo so previousStableVersion resolves
61
61
fetch-depth : 0
62
62
63
63
- name : Set up python 3
64
- uses : actions/setup-python@v3
64
+ uses : actions/setup-python@v4
65
65
with :
66
66
python-version : ' 3.x'
67
67
architecture : ' x64'
68
68
69
69
- name : Set up JDK 17
70
- uses : actions/setup-java@v2
70
+ uses : actions/setup-java@v3
71
71
with :
72
72
java-version : 17
73
73
distribution : ' adopt'
77
77
run : ant artifact
78
78
79
79
- name : ziping artifact
80
- uses : actions/upload-artifact@v2
80
+ uses : actions/upload-artifact@v4
81
81
with :
82
82
name : play-${{ github.sha }}
83
83
if-no-files-found : error
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ def load_core(self):
24
24
if filename != "__init__.py" and filename .endswith (".py" ):
25
25
try :
26
26
module_name = filename .replace (".py" , "" )
27
- module_path = os .path .join (self .path ,filename )
27
+ module_path = os .path .join (self .path , filename )
28
28
mod = load_python_module (module_name , module_path )
29
29
self ._load_cmd_from (mod )
30
30
except Exception as e :
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ def testWithFlag(self, mock):
33
33
play_app .java_cmd ([])
34
34
35
35
step ('Assert getJavaVersion was not called' )
36
- self .assert_ (not mock .called )
36
+ mock .assert_ (not mock .called )
37
37
38
38
@mock .patch ('play.application.getJavaVersion' , return_value = '' )
39
39
def testWithoutFlag (self , mock ):
@@ -43,7 +43,7 @@ def testWithoutFlag(self, mock):
43
43
play_app .java_cmd ([])
44
44
45
45
step ('Assert getJavaVersion was called once' )
46
- self .assert_ (mock .called )
46
+ mock .assert_ (mock .called )
47
47
48
48
49
49
if __name__ == '__main__' :
You can’t perform that action at this time.
0 commit comments