From f42fd508953db1583f7d831fa7781252969902bb Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Date: Wed, 25 Sep 2024 12:16:52 -0700 Subject: [PATCH] Use release version of Python 3.13 for doctest --- .github/workflows/reusable-docs.yml | 29 +++++++++++++++++------------ 1 file changed, 17 insertions(+), 12 deletions(-) diff --git a/.github/workflows/reusable-docs.yml b/.github/workflows/reusable-docs.yml index 4b021b3dc32f15..e553217fc992ef 100644 --- a/.github/workflows/reusable-docs.yml +++ b/.github/workflows/reusable-docs.yml @@ -99,20 +99,25 @@ 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.13' + allow-prereleases: true +# - 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