diff --git a/.github/workflows/action.yml b/.github/workflows/action.yml index b60cbe87..7b851c62 100644 --- a/.github/workflows/action.yml +++ b/.github/workflows/action.yml @@ -31,6 +31,7 @@ jobs: ] steps: - uses: actions/checkout@v4 + - uses: yezz123/setup-uv@v4 - uses: ./ - run: nox --non-interactive --error-on-missing-interpreter --session github_actions_default_tests diff --git a/action.yml b/action.yml index a703d1b0..c7990317 100644 --- a/action.yml +++ b/action.yml @@ -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")