Skip to content

Commit 7c24ac4

Browse files
committed
debug git actions
1 parent 249b779 commit 7c24ac4

File tree

2 files changed

+21
-9
lines changed

2 files changed

+21
-9
lines changed

.github/workflows/python-package.yml

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,18 @@ jobs:
2020
runs-on: ${{ matrix.os }}
2121
strategy:
2222
matrix:
23-
os: [ubuntu-latest]
23+
os: [macos-latest, ubuntu-latest]
2424
include:
25+
- os: macos-latest
26+
TARGET: x86_64-apple-darwin
27+
COMPILER: clang
28+
LINKER: clang
29+
2530
- os: ubuntu-latest
2631
TARGET: x86_64-unknown-linux-musl
2732
COMPILER: gcc
2833
LINKER: gcc
29-
python-version: [3.9]
34+
python-version: [3.6, 3.7, 3.8, 3.9]
3035

3136
steps:
3237
- uses: actions/checkout@v2
@@ -41,10 +46,16 @@ jobs:
4146
pip install coverage
4247
pip install coveralls
4348
pip install -r docs/requirements.txt
44-
- name: Setup ssh
49+
- name: Setup ssh on linux
4550
if: matrix.os == 'ubuntu-latest'
4651
run: |
47-
echo "${USER}:12345678" | sudo chpasswd
52+
ssh-keygen -t rsa -P '' -f ~/.ssh/id_rsa
53+
cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
54+
- name: Setup ssh on mac os
55+
if: matrix.os == 'macos-latest'
56+
run: |
57+
ssh-keygen -t rsa -P '' -f ~/.ssh/id_rsa
58+
cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
4859
- name: Install ssh-utilities
4960
run: |
5061
pip install .

tests/test_ssh_path.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,13 @@ def setUp(self):
3939

4040
# SSH to self, must have and localhost entry in config file and
4141
# correcponding keys present, also sshd must be installed and running
42-
if self.user == "rynik":
43-
c = Connection.get("kohn", local=False)
42+
#if self.user == "rynik":
43+
# c = Connection.get("kohn", local=False)
4444
# travis config file must change user password to desired
45-
else:
46-
c = Connection.open(self.user, "127.0.0.1", ssh_key_file=None,
47-
ssh_password="12345678", server_name="test")
45+
#else:
46+
# c = Connection.open(self.user, "127.0.0.1", ssh_key_file=None,
47+
# ssh_password="12345678", server_name="test")
48+
c = Connection.get("localhost", local=False)
4849

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

0 commit comments

Comments
 (0)