Skip to content

Commit

Permalink
Use Python 3.12 for GitHub actions
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
rra committed May 30, 2024
1 parent f68a6e0 commit 2902096
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -68,7 +68,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
Expand Down Expand Up @@ -101,7 +101,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:
Expand All @@ -124,4 +124,4 @@ jobs:

- uses: lsst-sqre/build-and-publish-to-pypi@v2
with:
python-version: "3.11"
python-version: "3.12"
4 changes: 2 additions & 2 deletions .github/workflows/periodic-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
Expand Down

0 comments on commit 2902096

Please sign in to comment.