Skip to content

Commit

Permalink
fix CI macos ssh localhost
Browse files Browse the repository at this point in the history
  • Loading branch information
eimrek committed Nov 28, 2023
1 parent a2031d9 commit c030168
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
- name: set up 'ssh localhost'
run: |
.github/workflows/setup-ssh-localhost.sh
ssh localhost
ssh -v localhost
- name: Install dependencies (including dev dependencies at frozen version)
# I'm using pip install -e to make sure that the coverage properly traces the runs
# also of the concurrent tests (maybe we can achieve this differently)
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/setup-ssh-localhost.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@ set -ev
ssh-keygen -q -t rsa -b 4096 -N "" -f "${HOME}/.ssh/id_rsa"
ssh-keygen -y -f "${HOME}/.ssh/id_rsa" >> "${HOME}/.ssh/authorized_keys"
ssh-keyscan -H localhost >> "${HOME}/.ssh/known_hosts"

chmod 700 "${HOME}/.ssh"
chmod 600 "${HOME}/.ssh"/*

0 comments on commit c030168

Please sign in to comment.