Skip to content

Commit

Permalink
Satisfy linters in action main
Browse files Browse the repository at this point in the history
  • Loading branch information
akaihola committed Jul 29, 2024
1 parent 1490909 commit bcdd034
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion action/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@


def pip_install(*packages):
"""Install the specified Python packages using a pip subprocess."""
python = str(ENV_BIN / "python")
args = [python, "-m", "pip", "install", *packages]
pip_proc = run( # nosec
Expand Down Expand Up @@ -86,6 +87,8 @@ def pip_install(*packages):
)
print(proc.stdout, end="")

with Path(os.environ["GITHUB_OUTPUT"]).open("a") as f:
print(f"Writing exitcode={proc.returncode} to {os.environ['GITHUB_OUTPUT']}")

with Path(os.environ["GITHUB_OUTPUT"]).open("a", encoding="UTF-8") as f:
print(f"exitcode={proc.returncode}", file=f)
sys.exit(proc.returncode)

0 comments on commit bcdd034

Please sign in to comment.