File tree 1 file changed +10
-2
lines changed 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change 1
1
import os
2
+ import platform
2
3
import re
3
4
4
5
import pytest
@@ -52,8 +53,15 @@ def tmp_commitizen_project_with_gpg(tmp_commitizen_project):
52
53
cmd .run (f"git config --global user.signingkey { _key_id } " )
53
54
54
55
# debug for mac github actions
55
- _check_macos = cmd .run ('echo "test" | gpg --clearsign' )
56
- print (f"MACOS CHECK:\n { _check_macos .out } \n { _check_macos .err } " )
56
+ if platform .system ().lower () == "darwin" :
57
+ _check_macos = cmd .run ('echo "test" | gpg --clearsign' )
58
+ print (f"MACOS CHECK:\n { _check_macos .out } \n { _check_macos .err } " )
59
+
60
+ _key_exist_macos = cmd .run ("gpg --list-secret-keys" )
61
+ print (f"MACOS List keys:\n { _key_exist_macos .out } \n { _key_exist_macos .err } " )
62
+
63
+ _key_gpg2_macos = cmd .run ("gpg2 --list-keys" )
64
+ print (f"MACOS List keys:\n { _key_gpg2_macos .out } \n { _key_gpg2_macos .err } " )
57
65
58
66
yield tmp_commitizen_project
59
67
You can’t perform that action at this time.
0 commit comments