mirror of
https://github.com/acehoss/rnsh.git
synced 2025-12-22 09:17:06 +00:00
Merge pull request #34 from acehoss/fix/build
Update GitHub Actions to fix build issues
This commit is contained in:
7
.github/workflows/python-package.yml
vendored
7
.github/workflows/python-package.yml
vendored
@@ -22,9 +22,12 @@ jobs:
|
|||||||
runs-on: [self-hosted, linux]
|
runs-on: [self-hosted, linux]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 1
|
fetch-depth: 1
|
||||||
|
fetch-tags: false
|
||||||
|
clean: true
|
||||||
|
ref: ${{ github.ref }}
|
||||||
|
|
||||||
- name: Set up Python 3.9
|
- name: Set up Python 3.9
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v4
|
||||||
@@ -53,7 +56,7 @@ jobs:
|
|||||||
# run: poetry run black . --check
|
# run: poetry run black . --check
|
||||||
|
|
||||||
- name: Test with pytest
|
- name: Test with pytest
|
||||||
run: poetry run pytest -m "not skip_ci" tests
|
run: poetry run pytest -q
|
||||||
|
|
||||||
# - name: Vulnerability check
|
# - name: Vulnerability check
|
||||||
# run: poetry run safety check
|
# run: poetry run safety check
|
||||||
|
|||||||
9
.github/workflows/python-publish.yml
vendored
9
.github/workflows/python-publish.yml
vendored
@@ -24,9 +24,14 @@ jobs:
|
|||||||
runs-on: [self-hosted, linux]
|
runs-on: [self-hosted, linux]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
|
# Ensure we only fetch the current ref, and avoid fetching tags to prevent
|
||||||
|
# 'would clobber existing tag' on self-hosted runners with cached repos
|
||||||
fetch-depth: 1
|
fetch-depth: 1
|
||||||
|
fetch-tags: false
|
||||||
|
clean: true
|
||||||
|
ref: ${{ github.ref }}
|
||||||
|
|
||||||
- name: Set up Python 3.9
|
- name: Set up Python 3.9
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v4
|
||||||
@@ -53,7 +58,7 @@ jobs:
|
|||||||
|
|
||||||
|
|
||||||
- name: Test with pytest
|
- name: Test with pytest
|
||||||
run: poetry run pytest -m "not skip_ci" tests
|
run: poetry run pytest -q
|
||||||
|
|
||||||
|
|
||||||
- name: Build package
|
- name: Build package
|
||||||
|
|||||||
@@ -158,7 +158,10 @@ async def listen(configdir, command, identitypath=None, service_name=None, verbo
|
|||||||
except Exception as e:
|
except Exception as e:
|
||||||
log.error(f"Error looking up shell: {e}")
|
log.error(f"Error looking up shell: {e}")
|
||||||
log.info(f"Using {shell} for default command.")
|
log.info(f"Using {shell} for default command.")
|
||||||
_cmd = [shell] if shell else None
|
# Ensure a sane shell default. Fall back to /bin/sh if lookup fails.
|
||||||
|
if not shell or len(shell) == 0:
|
||||||
|
shell = "/bin/sh"
|
||||||
|
_cmd = [shell]
|
||||||
else:
|
else:
|
||||||
log.info(f"Using command {shlex.join(_cmd)}")
|
log.info(f"Using command {shlex.join(_cmd)}")
|
||||||
|
|
||||||
|
|||||||
@@ -311,7 +311,7 @@ class ListenerSession:
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
self.process = process.CallbackSubprocess(argv=self.cmdline,
|
self.process = process.CallbackSubprocess(argv=self.cmdline,
|
||||||
env={"TERM": self.term or os.environ.get("TERM", None),
|
env={"TERM": self.term or os.environ.get("TERM") or "xterm",
|
||||||
"RNS_REMOTE_IDENTITY": (RNS.prettyhexrep(self.remote_identity.hash)
|
"RNS_REMOTE_IDENTITY": (RNS.prettyhexrep(self.remote_identity.hash)
|
||||||
if self.remote_identity and self.remote_identity.hash else "")},
|
if self.remote_identity and self.remote_identity.hash else "")},
|
||||||
loop=self.loop,
|
loop=self.loop,
|
||||||
|
|||||||
Reference in New Issue
Block a user