Skip to content

Commit

Permalink
chore: use uv if available in action
Browse files Browse the repository at this point in the history
Signed-off-by: Henry Schreiner <[email protected]>
  • Loading branch information
henryiii committed May 22, 2024
1 parent df7ae00 commit 094e93d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,10 @@ runs:
def post_setup(self, context):
super().post_setup(context)
self.bin_path = Path(context.env_exe).parent
run([sys.executable, "-m", "pip", "--python", context.env_exe, "install", r"${{ github.action_path }}"], check=True)
if shutil.which("uv") is None:
run([sys.executable, "-m", "pip", "--python", context.env_exe, "install", r"${{ github.action_path }}"], check=True)
else:
run(["uv", "pip", "install", "--python", context.env_exe, r"${{ github.action_path }}"], check=True)
print("::group::Install nox")
Expand Down

0 comments on commit 094e93d

Please sign in to comment.