From 1b86cab3353c9ab214c59961ec3c650d0d0ad2f9 Mon Sep 17 00:00:00 2001 From: Russ Allbery Date: Wed, 29 May 2024 17:13:32 -0700 Subject: [PATCH] Use Python 3.12 for GitHub actions For all GitHub Actions that do not use a version matrix to ensure that the code itself works with older versions, use Python 3.12 as the Python version, under the principle that tests unrelated to compatibility should follow the latest supported Python version. --- .github/workflows/ci.yaml | 8 ++++---- .github/workflows/periodic-ci.yaml | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 9e0ba4f0..5cbc5a7d 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -27,7 +27,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: "3.11" + python-version: "3.12" - name: Run pre-commit uses: pre-commit/action@v3.0.1 @@ -67,7 +67,7 @@ jobs: - name: Run tox uses: lsst-sqre/run-tox@v1 with: - python-version: "3.11" + python-version: "3.12" tox-envs: "docs,docs-linkcheck" # Only attempt documentation uploads for tagged releases and pull @@ -100,7 +100,7 @@ jobs: - name: Build and publish uses: lsst-sqre/build-and-publish-to-pypi@v2 with: - python-version: "3.11" + python-version: "3.12" upload: false pypi: @@ -123,4 +123,4 @@ jobs: - uses: lsst-sqre/build-and-publish-to-pypi@v2 with: - python-version: "3.11" + python-version: "3.12" diff --git a/.github/workflows/periodic-ci.yaml b/.github/workflows/periodic-ci.yaml index 4392ab27..b7de5fac 100644 --- a/.github/workflows/periodic-ci.yaml +++ b/.github/workflows/periodic-ci.yaml @@ -53,7 +53,7 @@ jobs: - name: Build docs in tox uses: lsst-sqre/run-tox@v1 with: - python-version: "3.11" + python-version: "3.12" tox-envs: "docs,docs-linkcheck" use-cache: false @@ -80,7 +80,7 @@ jobs: - name: Build and publish uses: lsst-sqre/build-and-publish-to-pypi@v2 with: - python-version: "3.11" + python-version: "3.12" upload: false - name: Report status