Skip to content

Commit c0f70ef

Browse files
committed
debug github actions
1 parent a03bf88 commit c0f70ef

File tree

3 files changed

+7
-13
lines changed

3 files changed

+7
-13
lines changed

.coveragerc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
[run]
2-
source = ssh-utilities
2+
source = ssh_utilities

.github/workflows/python-package.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,6 @@ jobs:
5858
github-token: ${{ secrets.github_token }}
5959
flag-name: run-${{ matrix.test_number }}
6060
parallel: true
61-
- name: Setup tmate session
62-
uses: mxschmitt/action-tmate@v3
63-
with:
64-
sudo: false
65-
timeout-minutes: 15
6661

6762
coveralls:
6863
needs:

tests/test_ssh_path.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,10 @@
2222
log = logging.getLogger(__name__)
2323
log.setLevel(logging.DEBUG)
2424

25-
CI = os.environ.get("TRAVIS", False)
25+
CI_T = os.environ.get("TRAVIS", False)
26+
CI_G = os.environ.get("CI", False) # github actions
27+
28+
CI = any((CI_T, CI_G))
2629

2730

2831
class TestSSHPath(TestCase):
@@ -32,16 +35,12 @@ def setUp(self):
3235

3336
self.user = os.environ.get("USER", "rynik")
3437
self.home = os.environ.get("HOME", Path.home())
35-
36-
if CI:
37-
self.os = os.environ.get("TRAVIS_OS_NAME", "linux")
38-
else:
39-
self.os = os.name
38+
self.os = os.name
4039

4140
# SSH to self, must have and localhost entry in config file and
4241
# correcponding keys present, also sshd must be installed and running
4342
if self.user == "rynik":
44-
c = Connection.get("localhost", local=False)
43+
c = Connection.get("kohn", local=False)
4544
# travis config file must change user password to desired
4645
else:
4746
c = Connection.open(self.user, "127.0.0.1", ssh_key_file=None,

0 commit comments

Comments
 (0)