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 .