Skip to content

Commit 08ec98d

Browse files
committed
debug git actions
1 parent e03a071 commit 08ec98d

File tree

2 files changed

+29
-31
lines changed

2 files changed

+29
-31
lines changed

.github/workflows/python-package.yml

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,14 @@ jobs:
2020
runs-on: ${{ matrix.os }}
2121
strategy:
2222
matrix:
23-
os: [macos-latest, ubuntu-latest]
23+
os:
24+
#- macos-latest
25+
- ubuntu-latest
2426
include:
25-
- os: macos-latest
26-
TARGET: x86_64-apple-darwin
27-
COMPILER: clang
28-
LINKER: clang
27+
#- os: macos-latest
28+
# TARGET: x86_64-apple-darwin
29+
# COMPILER: clang
30+
# LINKER: clang
2931

3032
- os: ubuntu-latest
3133
TARGET: x86_64-unknown-linux-musl
@@ -49,15 +51,12 @@ jobs:
4951
- name: Setup ssh on linux
5052
if: matrix.os == 'ubuntu-latest'
5153
run: |
52-
curl ifconfig.me
53-
printenv
54-
ssh-keygen -t rsa -P '' -f ~/.ssh/id_rsa
55-
cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
56-
- name: Setup ssh on mac os
57-
if: matrix.os == 'macos-latest'
58-
run: |
59-
ssh-keygen -t rsa -P '' -f ~/.ssh/id_rsa
60-
cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
54+
echo "${USER}:12345678" | sudo chpasswd
55+
#- name: Setup ssh for mac os or linux
56+
# run: |
57+
# curl ifconfig.me
58+
# ssh-keygen -t rsa -P '' -f ~/.ssh/id_rsa
59+
#og cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
6160
- name: Install ssh-utilities
6261
run: |
6362
pip install .

tests/test_ssh_path.py

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -54,24 +54,23 @@ def get_ip():
5454

5555
# SSH to self, must have and localhost entry in config file and
5656
# correcponding keys present, also sshd must be installed and running
57-
#if self.user == "rynik":
58-
# c = Connection.get("kohn", local=False)
59-
# travis config file must change user password to desired
60-
#else:
61-
# c = Connection.open(self.user, "127.0.0.1", ssh_key_file=None,
62-
# ssh_password="12345678", server_name="test")
57+
if self.user == "rynik":
58+
c = Connection.get("kohn", local=False)
59+
# travis/git config file must change user password to desired
60+
else:
61+
c = Connection.open(self.user, "127.0.0.1", ssh_key_file=None,
62+
ssh_password="12345678", server_name="test")
6363
# localhost = get_ip()
64-
localhost = subprocess.run(["curl", "ifconfig.me"],
65-
stdout=subprocess.PIPE, # python 3.6
66-
encoding="utf-8").stdout.strip()
67-
user = getpass.getuser()
68-
Connection.add_hosts({
69-
"user": self.user,
70-
"hostname": localhost,
71-
"identityfile": "~/.ssh/id_rsa"
72-
})
73-
print(Connection.available_hosts)
74-
c = Connection.get(localhost, local=False)
64+
# localhost = subprocess.run(["curl", "ifconfig.me"],
65+
# stdout=subprocess.PIPE, # python 3.6
66+
# encoding="utf-8").stdout.strip()
67+
# Connection.add_hosts({
68+
# "user": self.user,
69+
# "hostname": localhost,
70+
# "identityfile": "~/.ssh/id_rsa"
71+
# })
72+
# print(Connection.available_hosts)
73+
# c = Connection.get(localhost, local=False)
7574

7675
self.p = c.pathlib.Path("/tmp")
7776

0 commit comments

Comments
 (0)