Skip to content

Commit ac4798c

Browse files
committed
debug github actions
1 parent 7c24ac4 commit ac4798c

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.github/workflows/python-package.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ jobs:
6060
run: |
6161
pip install .
6262
- name: test with unittest and collect coverage data
63-
if: matrix.os == 'ubuntu-latest'
6463
run: |
6564
coverage run -m unittest discover
6665
- name: Submit to coveralls

tests/test_ssh_path.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
from unittest import TestCase, main
1818

1919
from ssh_utilities import Connection
20+
import getpass
2021

2122
logging.basicConfig(stream=sys.stderr)
2223
log = logging.getLogger(__name__)
@@ -45,6 +46,13 @@ def setUp(self):
4546
#else:
4647
# c = Connection.open(self.user, "127.0.0.1", ssh_key_file=None,
4748
# ssh_password="12345678", server_name="test")
49+
user = getpass.getuser()
50+
Connection.add_hosts({
51+
"user": user,
52+
"hostname": "localhost",
53+
"identityfile": "~/.ssh/id_rsa"
54+
})
55+
print(Connection.available_hosts)
4856
c = Connection.get("localhost", local=False)
4957

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

0 commit comments

Comments
 (0)