From 7bcb336b671a1cd10ac69605b988b56256883e13 Mon Sep 17 00:00:00 2001 From: pulpbot Date: Sun, 12 Apr 2026 18:46:49 +0000 Subject: [PATCH] Update cookiecutter --- .github/workflows/cookiecutter.yml | 36 +++++++++++++++++------------- 1 file changed, 20 insertions(+), 16 deletions(-) diff --git a/.github/workflows/cookiecutter.yml b/.github/workflows/cookiecutter.yml index c8dae4a..7dcbf4a 100644 --- a/.github/workflows/cookiecutter.yml +++ b/.github/workflows/cookiecutter.yml @@ -21,20 +21,22 @@ jobs: with: token: "${{ secrets.RELEASE_TOKEN }}" path: "pulp-cli-npm" - - name: "Set up Python" - uses: "actions/setup-python@v6" - with: - python-version: "3.x" - name: "Setup git" run: | git config user.name pulpbot git config user.email pulp-infra@redhat.com - - name: "Install python dependencies" - run: | - pip install cookiecutter tomlkit + - name: "Set up Python" + uses: "actions/setup-python@v6" + with: + python-version: "3.14" + allow-prereleases: true + - name: "Install uv" + uses: "astral-sh/setup-uv@v7" + with: + enable-cache: true - name: "Apply cookiecutter templates" run: | - ../pulp-cli/cookiecutter/apply_templates.py + uv run ../pulp-cli/cookiecutter/apply_templates.py if [ "$(git status --porcelain)" ] then git add . @@ -68,20 +70,22 @@ jobs: with: token: "${{ secrets.RELEASE_TOKEN }}" path: "pulp-cli-npm" - - name: "Set up Python" - uses: "actions/setup-python@v6" - with: - python-version: "3.x" - name: "Setup git" run: | git config user.name pulpbot git config user.email pulp-infra@redhat.com - - name: "Install python dependencies" - run: | - pip install packaging tomlkit + - name: "Set up Python" + uses: "actions/setup-python@v6" + with: + python-version: "3.14" + allow-prereleases: true + - name: "Install uv" + uses: "astral-sh/setup-uv@v7" + with: + enable-cache: true - name: "Apply cookiecutter templates" run: | - ../pulp-cli/cookiecutter/update_pulp_cli.py + uv run ../pulp-cli/cookiecutter/update_pulp_cli.py if [ "$(git status --porcelain)" ] then git add .