Skip to content

Commit e34c7bb

Browse files
authored
[3.11] gh-128504: Pin the doctest workflow to Ubuntu 24.04 (#161664)
1 parent ffbb750 commit e34c7bb

1 file changed

Lines changed: 11 additions & 4 deletions

File tree

‎.github/workflows/reusable-docs.yml‎

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Docs
1+
name: Reusable Docs
22

33
on:
44
workflow_call:
@@ -12,12 +12,15 @@ concurrency:
1212
cancel-in-progress: true
1313

1414
jobs:
15-
build_doc:
15+
build-doc:
1616
name: 'Docs'
1717
runs-on: ubuntu-latest
1818
timeout-minutes: 60
1919
steps:
20-
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
20+
- name: 'Check out latest PR branch commit'
21+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
22+
with:
23+
persist-credentials: false
2124
- name: 'Set up Python'
2225
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
2326
with:
@@ -26,6 +29,8 @@ jobs:
2629
cache-dependency-path: 'Doc/requirements.txt'
2730
- name: 'Install build dependencies'
2831
run: make -C Doc/ venv
32+
33+
# To annotate PRs with Sphinx nitpicks (missing references)
2934
- name: 'Build HTML documentation'
3035
run: make -C Doc/ SPHINXOPTS="-q" SPHINXERRORHANDLING="-W --keep-going" html
3136
- name: 'Upload'
@@ -55,10 +60,12 @@ jobs:
5560
# Run "doctest" on HEAD as new syntax doesn't exist in the latest stable release
5661
doctest:
5762
name: 'Doctest'
58-
runs-on: ubuntu-latest
63+
runs-on: ubuntu-24.04
5964
timeout-minutes: 60
6065
steps:
6166
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
67+
with:
68+
persist-credentials: false
6269
- uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
6370
with:
6471
path: ~/.cache/pip

0 commit comments

Comments
 (0)