Skip to content

Commit

Permalink
Use release version of Python 3.13 for doctest
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Sep 25, 2024
1 parent f8651a2 commit f42fd50
Showing 1 changed file with 17 additions and 12 deletions.
29 changes: 17 additions & 12 deletions .github/workflows/reusable-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit f42fd50

Please sign in to comment.