diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e517acbcc..6d8d9193c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -60,6 +60,8 @@ jobs: pwd tree -L 2 git clone https://github.com/python/cpython.git venv/cpython/ + # Install the doc requirements of the commit `make` builds, not of main. + git -C venv/cpython checkout "$(sed -n 's/^CPYTHON_CURRENT_COMMIT := //p' Makefile)" pip install -r venv/cpython/Doc/requirements.txt - name: Make run: make diff --git a/.github/workflows/update_doc.yml b/.github/workflows/update_doc.yml index 6469e652e..79ec39032 100644 --- a/.github/workflows/update_doc.yml +++ b/.github/workflows/update_doc.yml @@ -12,7 +12,8 @@ jobs: - uses: actions/checkout@v4 - name: Clone CPython Repo - run: git clone https://github.com/python/cpython venv/cpython + # Clone the target branch so its own Doc/requirements.txt is installed below. + run: git clone --branch ${{ github.ref_name }} https://github.com/python/cpython venv/cpython - name: Set Up Python 3.12 uses: actions/setup-python@v5