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..44037b9 100644 --- a/python-project-template/.github/workflows/pre-commit-ci.yml.jinja +++ b/python-project-template/.github/workflows/pre-commit-ci.yml.jinja @@ -14,15 +14,15 @@ 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 - uses: actions/setup-python@v5 + uses: actions/setup-python@v6 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..c82551f 100644 --- a/python-project-template/.github/workflows/publish-to-pypi.yml.jinja +++ b/python-project-template/.github/workflows/publish-to-pypi.yml.jinja @@ -23,9 +23,9 @@ jobs: permissions: id-token: write steps: - - uses: actions/checkout@v4 + - 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 0a2a877..2abad9f 100644 --- a/python-project-template/.github/workflows/smoke-test.yml.jinja +++ b/python-project-template/.github/workflows/smoke-test.yml.jinja @@ -23,13 +23,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 + 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 16b4361..307ec5d 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 + 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 @@ -42,9 +42,9 @@ 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 + 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 a7fd5cd..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,11 +30,11 @@ 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 - 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..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,11 +26,11 @@ 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 - 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..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,11 +32,11 @@ 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 - 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..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 @@ -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 }} @@ -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 1f628d6..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 @@ -20,9 +20,9 @@ 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 + uses: actions/setup-python@v6 with: python-version: '{{ py.pref(python_versions) }}' - name: Install uv