Skip to content

Commit aa1ed9b

Browse files
Merge pull request #338 from robbievanleeuwen/update-build
Build docs with python 3.10, pre-commit with python 3.11
2 parents 23e18f3 + b1556d7 commit aa1ed9b

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- name: Set up Python
1919
uses: actions/setup-python@v4
2020
with:
21-
python-version: "3.9"
21+
python-version: "3.11"
2222

2323
- name: Upgrade pip
2424
run: |

.github/workflows/tests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
fail-fast: false
1717
matrix:
1818
include:
19-
- { python: "3.9", os: "ubuntu-latest", session: "pre-commit" }
19+
- { python: "3.11", os: "ubuntu-latest", session: "pre-commit" }
2020
- { python: "3.11", os: "ubuntu-latest", session: "tests" }
2121
- { python: "3.10", os: "ubuntu-latest", session: "tests" }
2222
- { python: "3.9", os: "ubuntu-latest", session: "tests" }
@@ -26,7 +26,7 @@ jobs:
2626
- { python: "3.11", os: "macos-latest", session: "tests" }
2727
- { python: "3.10", os: "macos-latest", session: "tests" }
2828
- { python: "3.9", os: "macos-latest", session: "tests" }
29-
- { python: "3.9", os: "ubuntu-latest", session: "docs-build" }
29+
- { python: "3.10", os: "ubuntu-latest", session: "docs-build" }
3030

3131
env:
3232
NOXSESSION: ${{ matrix.session }}
@@ -123,7 +123,7 @@ jobs:
123123
- name: Set up Python
124124
uses: actions/setup-python@v4
125125
with:
126-
python-version: "3.9"
126+
python-version: "3.11"
127127

128128
- name: Upgrade pip
129129
run: |

.readthedocs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ version: 2
55
build:
66
os: ubuntu-22.04
77
tools:
8-
python: "3.9"
8+
python: "3.10"
99

1010
# Build documentation in the docs/ directory with Sphinx
1111
sphinx:

noxfile.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323

2424
package = "sectionproperties"
25-
python_versions = ["3.9", "3.11", "3.10"]
25+
python_versions = ["3.11", "3.10", "3.9"]
2626
nox.needs_version = ">= 2021.6.6"
2727
nox.options.sessions = (
2828
"pre-commit",
@@ -184,7 +184,7 @@ def coverage(session: Session) -> None:
184184
session.run("coverage", *args)
185185

186186

187-
@session(name="docs-build", python=python_versions[0])
187+
@session(name="docs-build", python=python_versions[1])
188188
def docs_build(session: Session) -> None:
189189
"""Build the documentation.
190190
@@ -218,7 +218,7 @@ def docs_build(session: Session) -> None:
218218
session.run("sphinx-build", *args)
219219

220220

221-
@session(python=python_versions[0])
221+
@session(python=python_versions[1])
222222
def docs(session: Session) -> None:
223223
"""Build and serve the documentation with live reloading on file changes.
224224

0 commit comments

Comments
 (0)