Skip to content

Commit

Permalink
Build docs on Jammy / 3.11
Browse files Browse the repository at this point in the history
  • Loading branch information
hynek committed Jun 2, 2023
1 parent 242a50a commit f28261a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 14 deletions.
13 changes: 2 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -169,20 +169,11 @@ jobs:
name: Build docs & run doctests
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@v2
with:
egress-policy: block
allowed-endpoints: >
docs.python.org:443
files.pythonhosted.org:443
github.com:443
pypi.org:443
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.10"
# Keep in-sync with .readthedocs.yaml and tox.ini/docs.
python-version: "3.11"
- run: python -Im pip install --upgrade wheel tox

- run: tox run -e docs
Expand Down
4 changes: 2 additions & 2 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ version: 2
formats: all

build:
os: ubuntu-20.04
os: ubuntu-22.04
tools:
# Keep version in-sync with tox.ini/docs and ci.yml/docs.
python: "3.10"
python: "3.11"

python:
install:
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ env_list =
[testenv:docs]
description = Build docs and run doctests.
# Keep base_python in-sync with .readthedocs.yaml and ci.yml/docs.
base_python = python3.10
base_python = python3.11
extras = docs
commands =
python -Im doctest README.md
Expand Down

0 comments on commit f28261a

Please sign in to comment.