Skip to content

Commit fe4b3c9

Browse files
committed
debug git actions
1 parent e041888 commit fe4b3c9

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.github/workflows/python-package.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ jobs:
5050
if: matrix.os == 'ubuntu-latest'
5151
run: |
5252
curl ifconfig.me
53+
printenv
5354
ssh-keygen -t rsa -P '' -f ~/.ssh/id_rsa
5455
cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
5556
- name: Setup ssh on mac os

tests/test_ssh_path.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
from ssh_utilities import Connection
2020
import getpass
2121
import socket
22+
import subprocess
2223

2324
logging.basicConfig(stream=sys.stderr)
2425
log = logging.getLogger(__name__)
@@ -59,7 +60,10 @@ def get_ip():
5960
#else:
6061
# c = Connection.open(self.user, "127.0.0.1", ssh_key_file=None,
6162
# ssh_password="12345678", server_name="test")
62-
localhost = get_ip()
63+
# localhost = get_ip()
64+
localhost = subprocess.run(["curl", "ifconfig.me"],
65+
capture_output=True,
66+
encoding="utf-8").stdout.strip()
6367
user = getpass.getuser()
6468
Connection.add_hosts({
6569
"user": self.user,

0 commit comments

Comments
 (0)