Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Standardize GitHub actions setup python #1763

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .github/workflows/test-translations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,9 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: >-
3.10
python-version: "3.13"
cache: "pip"
cache-dependency-path: "requirements.txt"

- name: Install Python tooling
run: python -m pip install --upgrade nox virtualenv sphinx-lint
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ 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"
python-version: "3.13"
cache: 'pip'
cache-dependency-path: 'requirements.txt'

Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/translation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down Expand Up @@ -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.13"
cache: "pip"
cache-dependency-path: "requirements.txt"

- name: Install Python tooling
run: python -m pip install --upgrade nox virtualenv
Expand Down
4 changes: 2 additions & 2 deletions source/contribute.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This says we use 3.11 in tests.

See the :doc:`Hitchhiker's Guide to Python installation instructions <python-guide:starting/installation>`
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:

Expand Down
Loading