Skip to content

Commit 42d9e8b

Browse files
fix(ci): install doc requirements of the target CPython branch
1 parent caa8b1e commit 42d9e8b

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

‎.github/workflows/build.yml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ jobs:
6060
pwd
6161
tree -L 2
6262
git clone https://github.com/python/cpython.git venv/cpython/
63+
# Install the doc requirements of the commit `make` builds, not of main.
64+
git -C venv/cpython checkout "$(sed -n 's/^CPYTHON_CURRENT_COMMIT := //p' Makefile)"
6365
pip install -r venv/cpython/Doc/requirements.txt
6466
- name: Make
6567
run: make

‎.github/workflows/update_doc.yml‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ jobs:
1212
- uses: actions/checkout@v4
1313

1414
- name: Clone CPython Repo
15-
run: git clone https://github.com/python/cpython venv/cpython
15+
# Clone the target branch so its own Doc/requirements.txt is installed below.
16+
run: git clone --branch ${{ github.ref_name }} https://github.com/python/cpython venv/cpython
1617

1718
- name: Set Up Python 3.12
1819
uses: actions/setup-python@v5

0 commit comments

Comments
 (0)