diff --git a/.github/workflows/reusable-docs.yml b/.github/workflows/reusable-docs.yml index 4b384f4b3fa602..a2f435a9efa1c8 100644 --- a/.github/workflows/reusable-docs.yml +++ b/.github/workflows/reusable-docs.yml @@ -96,20 +96,24 @@ jobs: timeout-minutes: 60 steps: - uses: actions/checkout@v4 - - uses: actions/cache@v4 + - name: 'Set up Python' + uses: actions/setup-python@v5 with: - path: ~/.cache/pip - key: ubuntu-doc-${{ hashFiles('Doc/requirements.txt') }} - restore-keys: | - ubuntu-doc- - - name: 'Install Dependencies' - run: sudo ./.github/workflows/posix-deps-apt.sh && sudo apt-get install wamerican - - name: 'Configure CPython' - run: ./configure --with-pydebug - - name: 'Build CPython' - run: make -j4 + python-version: '3.12' +# - uses: actions/cache@v4 +# with: +# path: ~/.cache/pip +# key: ubuntu-doc-${{ hashFiles('Doc/requirements.txt') }} +# restore-keys: | +# ubuntu-doc- +# - name: 'Install Dependencies' +# run: sudo ./.github/workflows/posix-deps-apt.sh && sudo apt-get install wamerican +# - name: 'Configure CPython' +# run: ./configure --with-pydebug +# - name: 'Build CPython' +# run: make -j4 - name: 'Install build dependencies' - run: make -C Doc/ PYTHON=../python venv + run: make -C Doc/ PYTHON=python3 venv # Use "xvfb-run" since some doctest tests open GUI windows - name: 'Run documentation doctest' run: xvfb-run make -C Doc/ PYTHON=../python SPHINXERRORHANDLING="-W --keep-going" doctest diff --git a/Doc/requirements.txt b/Doc/requirements.txt index bf1028020b7af7..d89fc0dc518e94 100644 --- a/Doc/requirements.txt +++ b/Doc/requirements.txt @@ -6,6 +6,7 @@ # Sphinx version is pinned so that new versions that introduce new warnings # won't suddenly cause build failures. Updating the version is fine as long # as no warnings are raised by doing so. + sphinx~=8.0.0 blurb