From 7056bdfa5fa442fa06dfdf8a6754ee42b7e0a4fb Mon Sep 17 00:00:00 2001 From: Jeremy Kubica <104161096+jeremykubica@users.noreply.github.com> Date: Mon, 5 Jan 2026 08:28:36 -0500 Subject: [PATCH 1/2] Upgrade action versions --- .../.github/workflows/pre-commit-ci.yml.jinja | 4 ++-- .../.github/workflows/publish-to-pypi.yml.jinja | 2 +- .../.github/workflows/smoke-test.yml.jinja | 2 +- .../.github/workflows/testing-and-coverage.yml.jinja | 6 +++--- ...{% if include_benchmarks %}asv-main.yml{% endif %}.jinja | 2 +- ...if include_benchmarks %}asv-nightly.yml{% endif %}.jinja | 6 +++--- .../{% if include_benchmarks %}asv-pr.yml{% endif %}.jinja | 4 ++-- ..._benchmarks %}publish-benchmarks-pr.yml{% endif %}.jinja | 2 +- ... include_docs %}build-documentation.yml{% endif %}.jinja | 2 +- 9 files changed, 15 insertions(+), 15 deletions(-) diff --git a/python-project-template/.github/workflows/pre-commit-ci.yml.jinja b/python-project-template/.github/workflows/pre-commit-ci.yml.jinja index 32e5d88..80ee0f4 100644 --- a/python-project-template/.github/workflows/pre-commit-ci.yml.jinja +++ b/python-project-template/.github/workflows/pre-commit-ci.yml.jinja @@ -14,7 +14,7 @@ jobs: pre-commit-ci: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 with: fetch-depth: 0 - name: Set up Python @@ -22,7 +22,7 @@ jobs: with: python-version: '{{ py.pref(python_versions) }}' - name: Install uv - uses: astral-sh/setup-uv@v5 + uses: astral-sh/setup-uv@v7 - name: Install dependencies run: | sudo apt-get update diff --git a/python-project-template/.github/workflows/publish-to-pypi.yml.jinja b/python-project-template/.github/workflows/publish-to-pypi.yml.jinja index fec3125..6f37386 100644 --- a/python-project-template/.github/workflows/publish-to-pypi.yml.jinja +++ b/python-project-template/.github/workflows/publish-to-pypi.yml.jinja @@ -23,7 +23,7 @@ jobs: permissions: id-token: write steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - name: Set up Python uses: actions/setup-python@v5 with: diff --git a/python-project-template/.github/workflows/smoke-test.yml.jinja b/python-project-template/.github/workflows/smoke-test.yml.jinja index 0a2a877..036ad77 100644 --- a/python-project-template/.github/workflows/smoke-test.yml.jinja +++ b/python-project-template/.github/workflows/smoke-test.yml.jinja @@ -23,7 +23,7 @@ jobs: python-version: {{ python_versions }} steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - name: Set up Python {% raw %}${{ matrix.python-version }}{% endraw %} uses: actions/setup-python@v5 with: diff --git a/python-project-template/.github/workflows/testing-and-coverage.yml.jinja b/python-project-template/.github/workflows/testing-and-coverage.yml.jinja index 16b4361..41c5cdd 100644 --- a/python-project-template/.github/workflows/testing-and-coverage.yml.jinja +++ b/python-project-template/.github/workflows/testing-and-coverage.yml.jinja @@ -19,13 +19,13 @@ jobs: python-version: {{ python_versions }} steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - name: Set up Python {% raw %}${{ matrix.python-version }}{% endraw %} uses: actions/setup-python@v5 with: python-version: {% raw %}${{ matrix.python-version }}{% endraw %} - name: Install uv - uses: astral-sh/setup-uv@v5 + uses: astral-sh/setup-uv@v7 - name: Install dependencies run: | sudo apt-get update @@ -42,7 +42,7 @@ jobs: test-lowest-versions: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - name: Set up Python {{ py.min(python_versions) }} uses: actions/setup-python@v5 with: diff --git a/python-project-template/.github/workflows/{% if include_benchmarks %}asv-main.yml{% endif %}.jinja b/python-project-template/.github/workflows/{% if include_benchmarks %}asv-main.yml{% endif %}.jinja index a7fd5cd..da377a7 100644 --- a/python-project-template/.github/workflows/{% if include_benchmarks %}asv-main.yml{% endif %}.jinja +++ b/python-project-template/.github/workflows/{% if include_benchmarks %}asv-main.yml{% endif %}.jinja @@ -34,7 +34,7 @@ jobs: with: python-version: ${{env.PYTHON_VERSION}} - name: Checkout main branch of the repository - uses: actions/checkout@v4 + uses: actions/checkout@v6 with: fetch-depth: 0 - name: Install dependencies diff --git a/python-project-template/.github/workflows/{% if include_benchmarks %}asv-nightly.yml{% endif %}.jinja b/python-project-template/.github/workflows/{% if include_benchmarks %}asv-nightly.yml{% endif %}.jinja index 75acbed..5118997 100644 --- a/python-project-template/.github/workflows/{% if include_benchmarks %}asv-nightly.yml{% endif %}.jinja +++ b/python-project-template/.github/workflows/{% if include_benchmarks %}asv-nightly.yml{% endif %}.jinja @@ -30,7 +30,7 @@ jobs: with: python-version: ${{env.PYTHON_VERSION}} - name: Checkout main branch of the repository - uses: actions/checkout@v4 + uses: actions/checkout@v6 with: fetch-depth: 0 - name: Install dependencies @@ -55,7 +55,7 @@ jobs: echo "yesterday=$(date -d yesterday +'%Y-%m-%d')" >> $GITHUB_OUTPUT echo "today=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT - name: Use last nightly commit hash from cache - uses: actions/cache@v4 + uses: actions/cache@v5 with: path: ${{env.WORKING_DIR}} key: nightly-results-${{steps.nightly-dates.outputs.yesterday}} @@ -70,7 +70,7 @@ jobs: fi echo $CURRENT_HASH > $HASH_FILE - name: Update last nightly hash in cache - uses: actions/cache@v4 + uses: actions/cache@v5 with: path: ${{env.WORKING_DIR}} key: nightly-results-${{steps.nightly-dates.outputs.today}} diff --git a/python-project-template/.github/workflows/{% if include_benchmarks %}asv-pr.yml{% endif %}.jinja b/python-project-template/.github/workflows/{% if include_benchmarks %}asv-pr.yml{% endif %}.jinja index 4d83f3a..3aabfb7 100644 --- a/python-project-template/.github/workflows/{% if include_benchmarks %}asv-pr.yml{% endif %}.jinja +++ b/python-project-template/.github/workflows/{% if include_benchmarks %}asv-pr.yml{% endif %}.jinja @@ -36,7 +36,7 @@ jobs: with: python-version: ${{env.PYTHON_VERSION}} - name: Checkout PR branch of the repository - uses: actions/checkout@v4 + uses: actions/checkout@v6 with: fetch-depth: 0 - name: Display Workflow Run Information @@ -68,7 +68,7 @@ jobs: env: STEP_URL: ${{steps.jobs.outputs.html_url}}#step:10:1 - name: Upload artifacts (PR number and benchmarks output) - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v6 with: name: benchmark-artifacts path: ${{env.ARTIFACTS_DIR}} diff --git a/python-project-template/.github/workflows/{% if include_benchmarks %}publish-benchmarks-pr.yml{% endif %}.jinja b/python-project-template/.github/workflows/{% if include_benchmarks %}publish-benchmarks-pr.yml{% endif %}.jinja index 1dce6ea..7177938 100644 --- a/python-project-template/.github/workflows/{% if include_benchmarks %}publish-benchmarks-pr.yml{% endif %}.jinja +++ b/python-project-template/.github/workflows/{% if include_benchmarks %}publish-benchmarks-pr.yml{% endif %}.jinja @@ -28,7 +28,7 @@ jobs: echo "Conclusion: ${{ github.event.workflow_run.conclusion }}" echo "Event: ${{ github.event.workflow_run.event }}" - name: Download artifact - uses: dawidd6/action-download-artifact@v7 + uses: dawidd6/action-download-artifact@v12 with: name: benchmark-artifacts run_id: ${{ github.event.workflow_run.id }} diff --git a/python-project-template/.github/workflows/{% if include_docs %}build-documentation.yml{% endif %}.jinja b/python-project-template/.github/workflows/{% if include_docs %}build-documentation.yml{% endif %}.jinja index 1f628d6..9ec10c2 100644 --- a/python-project-template/.github/workflows/{% if include_docs %}build-documentation.yml{% endif %}.jinja +++ b/python-project-template/.github/workflows/{% if include_docs %}build-documentation.yml{% endif %}.jinja @@ -20,7 +20,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - name: Set up Python {{ py.pref(python_versions) }} uses: actions/setup-python@v5 with: From da9c51c916f32931ba97d587ed22bd31dd10a6fd Mon Sep 17 00:00:00 2001 From: Jeremy Kubica <104161096+jeremykubica@users.noreply.github.com> Date: Mon, 5 Jan 2026 08:36:21 -0500 Subject: [PATCH 2/2] More updates --- .../.github/workflows/pre-commit-ci.yml.jinja | 2 +- .../.github/workflows/publish-to-pypi.yml.jinja | 2 +- .../.github/workflows/smoke-test.yml.jinja | 4 ++-- .../.github/workflows/testing-and-coverage.yml.jinja | 4 ++-- .../{% if include_benchmarks %}asv-main.yml{% endif %}.jinja | 2 +- ...% if include_benchmarks %}asv-nightly.yml{% endif %}.jinja | 2 +- .../{% if include_benchmarks %}asv-pr.yml{% endif %}.jinja | 2 +- ...de_benchmarks %}publish-benchmarks-pr.yml{% endif %}.jinja | 4 ++-- ...if include_docs %}build-documentation.yml{% endif %}.jinja | 2 +- 9 files changed, 12 insertions(+), 12 deletions(-) diff --git a/python-project-template/.github/workflows/pre-commit-ci.yml.jinja b/python-project-template/.github/workflows/pre-commit-ci.yml.jinja index 80ee0f4..44037b9 100644 --- a/python-project-template/.github/workflows/pre-commit-ci.yml.jinja +++ b/python-project-template/.github/workflows/pre-commit-ci.yml.jinja @@ -18,7 +18,7 @@ jobs: with: fetch-depth: 0 - name: Set up Python - uses: actions/setup-python@v5 + uses: actions/setup-python@v6 with: python-version: '{{ py.pref(python_versions) }}' - name: Install uv diff --git a/python-project-template/.github/workflows/publish-to-pypi.yml.jinja b/python-project-template/.github/workflows/publish-to-pypi.yml.jinja index 6f37386..c82551f 100644 --- a/python-project-template/.github/workflows/publish-to-pypi.yml.jinja +++ b/python-project-template/.github/workflows/publish-to-pypi.yml.jinja @@ -25,7 +25,7 @@ jobs: steps: - uses: actions/checkout@v6 - name: Set up Python - uses: actions/setup-python@v5 + uses: actions/setup-python@v6 with: python-version: '{{ py.pref(python_versions) }}' - name: Install dependencies diff --git a/python-project-template/.github/workflows/smoke-test.yml.jinja b/python-project-template/.github/workflows/smoke-test.yml.jinja index 036ad77..2abad9f 100644 --- a/python-project-template/.github/workflows/smoke-test.yml.jinja +++ b/python-project-template/.github/workflows/smoke-test.yml.jinja @@ -25,11 +25,11 @@ jobs: steps: - uses: actions/checkout@v6 - name: Set up Python {% raw %}${{ matrix.python-version }}{% endraw %} - uses: actions/setup-python@v5 + uses: actions/setup-python@v6 with: python-version: {% raw %}${{ matrix.python-version }}{% endraw %} - name: Install uv - uses: astral-sh/setup-uv@v5 + uses: astral-sh/setup-uv@v7 - name: Install dependencies run: | sudo apt-get update diff --git a/python-project-template/.github/workflows/testing-and-coverage.yml.jinja b/python-project-template/.github/workflows/testing-and-coverage.yml.jinja index 41c5cdd..307ec5d 100644 --- a/python-project-template/.github/workflows/testing-and-coverage.yml.jinja +++ b/python-project-template/.github/workflows/testing-and-coverage.yml.jinja @@ -21,7 +21,7 @@ jobs: steps: - uses: actions/checkout@v6 - name: Set up Python {% raw %}${{ matrix.python-version }}{% endraw %} - uses: actions/setup-python@v5 + uses: actions/setup-python@v6 with: python-version: {% raw %}${{ matrix.python-version }}{% endraw %} - name: Install uv @@ -44,7 +44,7 @@ jobs: steps: - uses: actions/checkout@v6 - name: Set up Python {{ py.min(python_versions) }} - uses: actions/setup-python@v5 + uses: actions/setup-python@v6 with: python-version: '{{ py.min(python_versions) }}' - name: Install dependencies diff --git a/python-project-template/.github/workflows/{% if include_benchmarks %}asv-main.yml{% endif %}.jinja b/python-project-template/.github/workflows/{% if include_benchmarks %}asv-main.yml{% endif %}.jinja index da377a7..8ec60be 100644 --- a/python-project-template/.github/workflows/{% if include_benchmarks %}asv-main.yml{% endif %}.jinja +++ b/python-project-template/.github/workflows/{% if include_benchmarks %}asv-main.yml{% endif %}.jinja @@ -30,7 +30,7 @@ jobs: working-directory: ${{env.WORKING_DIR}} steps: - name: Set up Python ${{env.PYTHON_VERSION}} - uses: actions/setup-python@v5 + uses: actions/setup-python@v6 with: python-version: ${{env.PYTHON_VERSION}} - name: Checkout main branch of the repository diff --git a/python-project-template/.github/workflows/{% if include_benchmarks %}asv-nightly.yml{% endif %}.jinja b/python-project-template/.github/workflows/{% if include_benchmarks %}asv-nightly.yml{% endif %}.jinja index 5118997..c8976f0 100644 --- a/python-project-template/.github/workflows/{% if include_benchmarks %}asv-nightly.yml{% endif %}.jinja +++ b/python-project-template/.github/workflows/{% if include_benchmarks %}asv-nightly.yml{% endif %}.jinja @@ -26,7 +26,7 @@ jobs: working-directory: ${{env.WORKING_DIR}} steps: - name: Set up Python ${{env.PYTHON_VERSION}} - uses: actions/setup-python@v5 + uses: actions/setup-python@v6 with: python-version: ${{env.PYTHON_VERSION}} - name: Checkout main branch of the repository diff --git a/python-project-template/.github/workflows/{% if include_benchmarks %}asv-pr.yml{% endif %}.jinja b/python-project-template/.github/workflows/{% if include_benchmarks %}asv-pr.yml{% endif %}.jinja index 3aabfb7..b8c40d2 100644 --- a/python-project-template/.github/workflows/{% if include_benchmarks %}asv-pr.yml{% endif %}.jinja +++ b/python-project-template/.github/workflows/{% if include_benchmarks %}asv-pr.yml{% endif %}.jinja @@ -32,7 +32,7 @@ jobs: working-directory: ${{env.WORKING_DIR}} steps: - name: Set up Python ${{env.PYTHON_VERSION}} - uses: actions/setup-python@v5 + uses: actions/setup-python@v6 with: python-version: ${{env.PYTHON_VERSION}} - name: Checkout PR branch of the repository diff --git a/python-project-template/.github/workflows/{% if include_benchmarks %}publish-benchmarks-pr.yml{% endif %}.jinja b/python-project-template/.github/workflows/{% if include_benchmarks %}publish-benchmarks-pr.yml{% endif %}.jinja index 7177938..6ecc353 100644 --- a/python-project-template/.github/workflows/{% if include_benchmarks %}publish-benchmarks-pr.yml{% endif %}.jinja +++ b/python-project-template/.github/workflows/{% if include_benchmarks %}publish-benchmarks-pr.yml{% endif %}.jinja @@ -39,14 +39,14 @@ jobs: printf "Output:\n$(cat output)" printf "pr=$(cat pr)" >> $GITHUB_OUTPUT - name: Find benchmarks comment - uses: peter-evans/find-comment@v3 + uses: peter-evans/find-comment@v4 id: find-comment with: issue-number: ${{ steps.pr-info.outputs.pr }} comment-author: 'github-actions[bot]' body-includes: view all benchmarks - name: Create or update benchmarks comment - uses: peter-evans/create-or-update-comment@v4 + uses: peter-evans/create-or-update-comment@v5 with: comment-id: ${{ steps.find-comment.outputs.comment-id }} issue-number: ${{ steps.pr-info.outputs.pr }} diff --git a/python-project-template/.github/workflows/{% if include_docs %}build-documentation.yml{% endif %}.jinja b/python-project-template/.github/workflows/{% if include_docs %}build-documentation.yml{% endif %}.jinja index 9ec10c2..9affe9f 100644 --- a/python-project-template/.github/workflows/{% if include_docs %}build-documentation.yml{% endif %}.jinja +++ b/python-project-template/.github/workflows/{% if include_docs %}build-documentation.yml{% endif %}.jinja @@ -22,7 +22,7 @@ jobs: steps: - uses: actions/checkout@v6 - name: Set up Python {{ py.pref(python_versions) }} - uses: actions/setup-python@v5 + uses: actions/setup-python@v6 with: python-version: '{{ py.pref(python_versions) }}' - name: Install uv