From d62754b8018e33779cf7e847e940a394dcdb1491 Mon Sep 17 00:00:00 2001 From: Alexis Date: Wed, 25 Sep 2024 17:22:22 +0200 Subject: [PATCH] Install UV in workflows --- {{cookiecutter.project_slug}}/.github/workflows/docs.yml | 7 +++++++ {{cookiecutter.project_slug}}/.github/workflows/lint.yml | 7 +++++++ {{cookiecutter.project_slug}}/.github/workflows/tests.yml | 7 +++++++ 3 files changed, 21 insertions(+) diff --git a/{{cookiecutter.project_slug}}/.github/workflows/docs.yml b/{{cookiecutter.project_slug}}/.github/workflows/docs.yml index 79cb494..836d3ae 100644 --- a/{{cookiecutter.project_slug}}/.github/workflows/docs.yml +++ b/{{cookiecutter.project_slug}}/.github/workflows/docs.yml @@ -16,6 +16,13 @@ jobs: python-version-file: pyproject.toml cache: "pip" cache-dependency-path: pyproject.toml + + - name: install uv + run: > + curl --no-progress-meter --location --fail + --proto '=https' --tlsv1.2 + "https://astral.sh/uv/install.sh" + | sh - name: setup run: | diff --git a/{{cookiecutter.project_slug}}/.github/workflows/lint.yml b/{{cookiecutter.project_slug}}/.github/workflows/lint.yml index f484a39..41faacc 100644 --- a/{{cookiecutter.project_slug}}/.github/workflows/lint.yml +++ b/{{cookiecutter.project_slug}}/.github/workflows/lint.yml @@ -17,6 +17,13 @@ jobs: python-version-file: pyproject.toml cache: "pip" cache-dependency-path: pyproject.toml + + - name: install uv + run: > + curl --no-progress-meter --location --fail + --proto '=https' --tlsv1.2 + "https://astral.sh/uv/install.sh" + | sh - name: lint run: make lint INSTALL_EXTRA=lint diff --git a/{{cookiecutter.project_slug}}/.github/workflows/tests.yml b/{{cookiecutter.project_slug}}/.github/workflows/tests.yml index 9bd0005..6641fb6 100644 --- a/{{cookiecutter.project_slug}}/.github/workflows/tests.yml +++ b/{{cookiecutter.project_slug}}/.github/workflows/tests.yml @@ -24,6 +24,13 @@ jobs: python-version: ${{ matrix.python }} cache: "pip" cache-dependency-path: pyproject.toml + + - name: install uv + run: > + curl --no-progress-meter --location --fail + --proto '=https' --tlsv1.2 + "https://astral.sh/uv/install.sh" + | sh - name: test run: make test INSTALL_EXTRA=test