From 5a5ff3e311fb1ba6dd54a46017287da15bec4342 Mon Sep 17 00:00:00 2001 From: CJ Steiner Date: Thu, 19 Dec 2024 16:20:00 -0600 Subject: [PATCH 1/2] ci: update checkout and setupPython versions and standardize caching --- .github/workflows/test-translations.yml | 5 +++-- .github/workflows/test.yml | 4 ++-- .github/workflows/translation.yml | 9 +++++---- 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/.github/workflows/test-translations.yml b/.github/workflows/test-translations.yml index 45dc60aa3..d3087d295 100644 --- a/.github/workflows/test-translations.yml +++ b/.github/workflows/test-translations.yml @@ -60,8 +60,9 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: >- - 3.10 + python-version: "3.11" + cache: "pip" + cache-dependency-path: "requirements.txt" - name: Install Python tooling run: python -m pip install --upgrade nox virtualenv sphinx-lint diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 8503ca720..799e95204 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -24,10 +24,10 @@ jobs: - linkcheck steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: "3.11" cache: 'pip' diff --git a/.github/workflows/translation.yml b/.github/workflows/translation.yml index 7cfae2991..ee9204cb9 100644 --- a/.github/workflows/translation.yml +++ b/.github/workflows/translation.yml @@ -19,7 +19,7 @@ jobs: steps: - name: Grab the repo src - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 # To reach the common commit - name: Set up git user as [bot] @@ -51,10 +51,11 @@ jobs: git merge '${{ github.event.repository.default_branch }}' - name: Set up Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: - python-version: >- - 3.10 + python-version: "3.11" + cache: "pip" + cache-dependency-path: "requirements.txt" - name: Install Python tooling run: python -m pip install --upgrade nox virtualenv From 8a1d22d6b2834b14bbe5c11c75fa4438083d4cf5 Mon Sep 17 00:00:00 2001 From: CJ Steiner Date: Thu, 19 Dec 2024 17:41:12 -0600 Subject: [PATCH 2/2] ci: update python to use 3.13 --- .github/workflows/test-translations.yml | 2 +- .github/workflows/test.yml | 2 +- .github/workflows/translation.yml | 2 +- source/contribute.rst | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test-translations.yml b/.github/workflows/test-translations.yml index d3087d295..a3dbea8c9 100644 --- a/.github/workflows/test-translations.yml +++ b/.github/workflows/test-translations.yml @@ -60,7 +60,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: "3.11" + python-version: "3.13" cache: "pip" cache-dependency-path: "requirements.txt" diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 799e95204..9e07d5922 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -29,7 +29,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: "3.11" + python-version: "3.13" cache: 'pip' cache-dependency-path: 'requirements.txt' diff --git a/.github/workflows/translation.yml b/.github/workflows/translation.yml index ee9204cb9..0ecab0ca8 100644 --- a/.github/workflows/translation.yml +++ b/.github/workflows/translation.yml @@ -53,7 +53,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: "3.11" + python-version: "3.13" cache: "pip" cache-dependency-path: "requirements.txt" diff --git a/source/contribute.rst b/source/contribute.rst index a246751e4..125cf0d8d 100644 --- a/source/contribute.rst +++ b/source/contribute.rst @@ -134,9 +134,9 @@ need: python -m pip install --user nox -2. Python 3.11. Our build scripts are usually tested with Python 3.11 only. +2. Python 3.13. Our build scripts are usually tested with Python 3.11 only. See the :doc:`Hitchhiker's Guide to Python installation instructions ` - to install Python 3.11 on your operating system. + to install Python 3.13 on your operating system. To build the guide, run the following shell command in the project's root folder: