diff --git a/{{cookiecutter.project_slug}}/.github/workflows/docs.yml b/{{cookiecutter.project_slug}}/.github/workflows/docs.yml index d3cd121..ca6c622 100644 --- a/{{cookiecutter.project_slug}}/.github/workflows/docs.yml +++ b/{{cookiecutter.project_slug}}/.github/workflows/docs.yml @@ -11,18 +11,11 @@ jobs: steps: - uses: actions/checkout@v4 - - uses: actions/setup-python@v5 + - name: Install uv + uses: astral-sh/setup-uv@v3 with: - python-version-file: pyproject.toml - # cache: "uv" # Wait on https://github.com/actions/setup-python/pull/818 to be merged - # 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 + enable-cache: true + cache-dependency-glob: pyproject.toml - name: setup run: | diff --git a/{{cookiecutter.project_slug}}/.github/workflows/lint.yml b/{{cookiecutter.project_slug}}/.github/workflows/lint.yml index 6c0054e..77eb058 100644 --- a/{{cookiecutter.project_slug}}/.github/workflows/lint.yml +++ b/{{cookiecutter.project_slug}}/.github/workflows/lint.yml @@ -12,12 +12,12 @@ jobs: steps: - uses: actions/checkout@v4 - - uses: actions/setup-python@v5 + - name: Install uv + uses: astral-sh/setup-uv@v3 with: - python-version-file: pyproject.toml - # cache: "uv" # Wait on https://github.com/actions/setup-python/pull/818 to be merged - # cache-dependency-path: pyproject.toml - + enable-cache: true + cache-dependency-glob: pyproject.toml + - name: install uv run: > curl --no-progress-meter --location --fail diff --git a/{{cookiecutter.project_slug}}/.github/workflows/release.yml b/{{cookiecutter.project_slug}}/.github/workflows/release.yml index 01690bb..65fe7da 100644 --- a/{{cookiecutter.project_slug}}/.github/workflows/release.yml +++ b/{{cookiecutter.project_slug}}/.github/workflows/release.yml @@ -22,17 +22,14 @@ jobs: with: persist-credentials: false - - uses: actions/setup-python@v5 + - name: Install uv + uses: astral-sh/setup-uv@v3 with: - python-version-file: pyproject.toml - # cache: "uv" # Wait on https://github.com/actions/setup-python/pull/818 to be merged - # cache-dependency-path: pyproject.toml - - - name: deps - run: python -m pip install -U setuptools build wheel + enable-cache: true + cache-dependency-glob: pyproject.toml - name: build - run: python -m build + run: uvx --from build pyproject-build --installer uv - name: publish uses: pypa/gh-action-pypi-publish@release/v1 diff --git a/{{cookiecutter.project_slug}}/.github/workflows/tests.yml b/{{cookiecutter.project_slug}}/.github/workflows/tests.yml index cca1815..0bf01c6 100644 --- a/{{cookiecutter.project_slug}}/.github/workflows/tests.yml +++ b/{{cookiecutter.project_slug}}/.github/workflows/tests.yml @@ -19,18 +19,14 @@ jobs: steps: - uses: actions/checkout@v4 - - uses: actions/setup-python@v5 + - name: Install uv + uses: astral-sh/setup-uv@v3 with: - python-version: ${{ matrix.python }} - # cache: "uv" # Wait on https://github.com/actions/setup-python/pull/818 to be merged - # 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 + enable-cache: true + cache-dependency-glob: pyproject.toml + + - name: Install Python ${{ matrix.python }} + run: uv python install ${{ matrix.python }} - name: test run: make test INSTALL_EXTRA=test